pyjade
pyjade copied to clipboard
missing !{} (unescaped interpolated variables) support in attributes
when using
script(src='/js/page/!{pageName}.js')
pyjade complied to
<script src="/js/page/!{pageName}.js"></script>
so the !{}
support in attributes is missing.
and when using
script(src='/js/page/#{pageName}.js')
pyjade escape the string, and finally the html will be
<script src="/js/page/landing.js"></script>
Also, when using
a(href="#{template_variable.attribute}")
, the href part compiled to:
href = "!%7Btemplate_variable.attribute%7D"
This still seems to be an issue. Is there a workaround?
@rufman are you using jinja?
I'm using Mako