We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using cofeekup with express and enabling autoescape, the @body property in the layout will be escaped as well; it should not.
autoescape
@body
# sample express application - app.coffee app.configure -> @set "view options", autoescape: true # autoescaping enabled @set "views", "#{__dirname}/views" @set "view engine", "coffee" @register '.coffee', coffeekup.adapters.express
# layout.coffee doctype 5 html -> body -> @body # <-- body contents will be escaped, including # markup generated by coffeekup itself!
What would be especially cool is a safe helper:
safe
# layout.coffee doctype 5 html -> body -> safe @body # <-- tags generated by coffeekup wouldn't be # escaped, only variables would)
What do you think? I can work on a patch and send a PR if you agree on this.
The text was updated successfully, but these errors were encountered:
For the record, this is a quick workaround:
doctype 5 html -> body -> @autoescape = false @body
I keep thinking that a safe helper is needed though :)
Sorry, something went wrong.
refs mauricemach#108 - Lack of a unescape/safe helper when autoescape…
9374da4
… in on
No branches or pull requests
When using cofeekup with express and enabling
autoescape
, the@body
property in the layout will be escaped as well; it should not.What would be especially cool is a
safe
helper:What do you think? I can work on a patch and send a PR if you agree on this.
The text was updated successfully, but these errors were encountered: