mauricemach/coffeekup — Issue #108: Lack of a unescape/safe helper when autoescape in on
Author: n1k0
Created: 2012-01-26 09:57:22+00:00
State: open

When using cofeekup with express and enabling `autoescape`, the `@body` property in the layout will be escaped as well; it should not.

```coffeescript
# 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
```

```coffeescript
# layout.coffee

doctype 5
html -> body -> @body # <-- body contents will be escaped!
```

What would be especially cool is a `safe` helper:

```coffeescript
# layout.coffee

doctype 5
html -> body -> safe @body # <-- body contents wouldn't be escaped
```

What do you think? I can work on a patch and send a PR if you agree on this.