shakespeare-js: Stick your haskell variables into javascript/coffeescript at compile time.
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 also 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.
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
test_export | Disabled | |
test_coffee | render tests through coffeescript render function | Disabled |
test_roy | render tests through coffeescript render function | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- shakespeare-js-1.2.0.4.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.11.0, 0.11.0.1, 0.11.1, 0.11.2, 1.0.0, 1.0.0.1, 1.0.0.2, 1.0.0.3, 1.0.0.4, 1.0.0.5, 1.0.0.6, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.2, 1.1.2.1, 1.1.3, 1.1.4, 1.1.4.1, 1.2.0, 1.2.0.1, 1.2.0.2, 1.2.0.3, 1.2.0.4, 1.3.0 |
---|---|
Dependencies | aeson (>=0.5 && <0.12), base (>=4 && <5), shakespeare (>=1.2 && <1.3), template-haskell, text (>=0.7) [details] |
License | MIT |
Author | Michael Snoyman <michael@snoyman.com> |
Maintainer | Michael Snoyman <michael@snoyman.com>, Greg Weber <greg@gregweber.info> |
Revised | Revision 1 made by HerbertValerioRiedel at 2019-02-14T23:32:49Z |
Category | Web, Yesod |
Home page | http://www.yesodweb.com/book/shakespearean-templates |
Source repo | head: git clone git://github.com/yesodweb/shakespeare.git |
Uploaded | by MichaelSnoyman at 2014-02-18T05:56:43Z |
Distributions | NixOS:1.3.0 |
Reverse Dependencies | 21 direct, 125 indirect [details] |
Downloads | 49578 total (10 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Successful builds reported [all 1 reports] |