@hackage shakespeare-js1.2.0
Stick your haskell variables into javascript/coffeescript at compile time.
Categories
License
MIT
Maintainer
Michael Snoyman <michael@snoyman.com>, Greg Weber <greg@gregweber.info>
Links
Versions
Deprecated
Dependencies (5)
- aeson >=0.5 && <0.12
- base >=4 && <5
- shakespeare >=1.2 && <1.3
- template-haskell
- text >=0.7 Show all…
Dependents (29)
@hackage/yesod-auth-fb, @hackage/yesod-default, @hackage/yesod-fay, @hackage/yesod-bin, @hackage/yesod-mangopay, @hackage/dingo-widgets, Show all…
Package Flags
test_export(off by default)
test_coffee
(off by default)
render tests through coffeescript render function
test_roy
(off by default)
render tests through coffeescript render function
Shakespeare is a template family for type-safe, efficient templates with simple variable interpolation. Shakespeare templates can be used inline with a quasi-quoter or in an external file. Shakespeare interpolates variables according to the type being inserted. In this case, the variable type needs a ToJavascript instance.
shakespeare-javascript is alson known as Julius, and passes through plain javascript
There is also a shakespeare version for CoffeeScript, TypeScript, and Roy, all languages that compile down to Javascript. They all expect you to have the appropriate compiler in your path.
shakespeare originated from the hamlet template package. Please see http://www.yesodweb.com/book/shakespearean-templates for a more thorough description and examples