I would like to understand how should I include the following HTML syntax in a Twig template (custom theme):
< ! - - [if lt IE 9]> < script type="text/javascript" src="js/customFoo.js" > < / script > < ! [endif] - - >
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Solved by Dimitri Longo View solution
I would like to understand how should I include the following HTML syntax in a Twig template (custom theme):
< ! - - [if lt IE 9]> < script type="text/javascript" src="js/customFoo.js" > < / script > < ! [endif] - - >
many ways to add assets
https://learn.getgrav.org/themes/asset-manager#example
in base.html.twig for example
or with assets plugin
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 4 | 193 | 2 months ago | ||
| 3 | 90 | 2 months ago | ||
| 11 | 449 | 3 months ago | ||
| 0 | 44 | 3 months ago | ||
| 5 | 123 | 3 months ago |