include_javascript - pfaciana/latte-js GitHub Wiki
Loads and executes javascript code at run-time.
| Attribute | Required | Default | Description |
|---|---|---|---|
| file | Yes | n/a | The value of the file attribute is passed to Latte.prototype.getJavascript() method to get code to execute. |
| once | No | true | whether or not to include the JavaScript code more than once if included multiple times |
| assign | No | n/a | The name of the variable that the output will be assigned to |
see also Latte.prototype.getJavascript