I have some trouble adding my CSS in my template using {{ STATIC_URL }}. The tag does not work inside the link markup, but works anywhere else. This:
{{ STATIC_URL }}
correctly translated into
/static/
, but
link(href="{{ STATIC_URL }}css/bla.css"
become
<link href="{{ STATIC_URL }}css/bla.css">
I use pyjade with Django. Anybody can help on this?
edit I found the answer: if you want to use static attributes, use '!=' instead of '='. Example:
link(href!="{{ STATIC_URL }}css/bla.css"