-
-
Notifications
You must be signed in to change notification settings - Fork 2k
-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
escapse sharp in multi-line mode #769
Comments
that's just text interpolation. You have to escape it with |
Yes, that's what I've done. The github editor eat the backslash. app.js var jade = require("jade");
var fs = require("fs");
var fn = jade.compile(fs.readFileSync("./a.jade"));
console.log(fn()); a.jade
except to get <p>#{something}</p> but get below actually <p>\#{something}</p> jade 0.27.2 from npm |
thanks, missed that, I thought we had that working properly but we didn't have test cov |
I want to write client-side jade template within script tag, and try to perform like this:
but because "#{item.key}" is recognized as a varible, while "each imte in items" as pure text, this will cause a parsing error.
so I add a backslash before to make it like "li #{item.key}" , but the back slash just output together.
I want to know is this a bug , ok how can I achieve my require?
The text was updated successfully, but these errors were encountered: