javascript

Add inline javascript code within javascript tags.

Specification

{{ javascript_code | javascript }}

Parameter Description Example Values
javascript_code (required) The javascript code that you want wrapped in script tags “alert(‘Hello, world’);”

Example

{{ "console.log('Hello, world');" | javascript }}

This will generate “Hello, world” in Firebug console.