Posts

Showing posts with the label nunjucks

How to render a custom view in a NPM module?

How to render a custom view in a NPM module? Since pushAsset does not allow to load external resources, I want to render this template/script of my NPM module: pushAsset views/tag.html https://www.googletagmanager.com/gtag/js?id=%20data.gid%20 NPM modules are kind of different to project level modules, because I cannot directly edit the project files. When / how are you trying to render this tag template? What is the desired flow to get this template in the browser? – Stuart Romanek Jun 27 at 14:02 This template should render on every page request. This tag should be always at the start of the head . – crstn Jun 27 at 17:08 head You should be able to just {% include ...