pufuwozu/roy — Issue #108: javascript escape hatch
Author: gregwebs
Created: 2012-02-19 09:04:44+00:00
State: open

coffeescript allows the usage of backticks to insert arbitrary javascript.

This is useful in its own right to insert raw javascript. I actually use this to help put a Haskell template on top of coffeescript.

``` js
# coffeescript code
a = `%{haskell insertion}`
```

The coffeescript is compiled into a template just once, with holes remaining for Haskell variables.
I want to create a Roy template in the same way. I can get by for the time being by doing splices inside strings and using window variables.