The bundle tag is used to render a bundle on the page.
Option Key Value Pairs
The following key value pairs must be specified with this tag.
Key | Value |
---|---|
render | Can be either js or css depending on the type of bundle to render. |
bundle | The name of bundle to render. |
Example
{% bundle render="js" bundle="headScripts" %}
When view engine finds the above tag, it creates a bundle with all the scripts in bundle headScripts
and renders it on the page.