pyjade icon indicating copy to clipboard operation
pyjade copied to clipboard

missing !{} (unescaped interpolated variables) support in attributes

Open hyspace opened this issue 11 years ago • 4 comments

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=&#34;/js/page/landing.js&#34;></script>

hyspace avatar Dec 06 '13 06:12 hyspace

Also, when using

a(href="#{template_variable.attribute}")

, the href part compiled to:

href = "!%7Btemplate_variable.attribute%7D"

gobid avatar Feb 17 '14 22:02 gobid

This still seems to be an issue. Is there a workaround?

rufman avatar Jun 08 '15 23:06 rufman

@rufman are you using jinja?

syrusakbary avatar Jun 09 '15 21:06 syrusakbary

I'm using Mako

rufman avatar Jun 09 '15 21:06 rufman