The css tag is used to include a stylesheet on a page.
Parameter
The tag requires full path to the css file relative to the theme's directory.
Option Key Value Pairs
The following key value pairs can be specified with this tag.
Key | Value |
---|---|
bundle | The name of the bundle in which this stylesheet is included. |
Example
{% css "/default/assets/css/bootstrap.min.css" %}
When view engine finds the above tag, it renders the following on the page (unless bundling is enabled). If bundling is enabled, nothing is rendered at the tag's place.
<link href="/default/assets/css/bootstrap.min.css" />