include css

205 views
Skip to first unread message

Das Licht

unread,
Mar 31, 2016, 11:04:07 AM3/31/16
to Nunjucks
Hi,
is there a way to include assets such as css files into nunjucks temples without providing an url but rather a filesystem path ?

Something like this:


?

Carl Meyer

unread,
Jun 10, 2016, 10:36:06 AM6/10/16
to Nunjucks

This is out of scope for nunjucks: nunjucks is a templating language, not an asset-build system. You need a separate system to do this path-to-url conversion. If you just need path/url management and no compile/build step, it could be something very small and simple that you write yourself, even just a very simple JS function that you pass into the template context and call from within the template.

Carl
Reply all
Reply to author
Forward
0 new messages