Closed grkblood13 closed 6 years ago
Thanks, I can reproduce this issue. I am not really familiar with pug anymore. Is this a problem if the output is following? (!{bar}
instead of #{bar}
)
doctype strict
html
head
script.
var foo = "!{bar}"
body
That shouldn't be a problem.
Do you have an idea of when this might get fixed? I was going to hold off on opening a site if it was going to be a quick fix but if you think it might take a while I'll just go ahead and move forward and come back to this at a later time.
@grkblood13 sorry I was travelling and had little time for fixing the bug. I'll update the lib in the next hour.
@grkblood13 your bug should be fixed in v3.1.1
. Thanks for your patience. And please report any bugs you have, this helps me a lot to make this lib better 👍
Rendering will fail for me when attempting to process a pug file that has inline javascript handling a passed variable using string interpolation. The following example should save the passed variable 'bar' to 'foo' but crashes instead.