Modifier: console_log


Debug a variable by dumping its contents to your browser’s JavaScript’s console via console.log.

fruit:
  - apples
  - bananas
  - bacon
{{ fruit | console_log }}
["apples", "banana", "jerky"]

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016