shakespeare-text: Interpolation with quasi-quotation: put variables strings (deprecated)

[ deprecated, library, mit, web, yesod ] [ Propose Tags ] [ Report a vulnerability ]
Deprecated in favor of shakespeare

interpolation with quasi-quotation: stick haskell variables into haskell strings

Note there is no dependency on haskell-src-extras. If you don't mind that dependency, you may want to look at using these packages: Interpolation, interpolatedstring-perl6, interpolatedstring-qq.

This package has 1 other general feature that those others may not (but would be easy to duplicate): instead of using quasi-quoting you can also use an external file. It also has url/embeding interpolation, with @ and ^, which are used in Yesod.

This package also uses blaze-builder for efficiently constructing strings (I am not sure what the other packages use). This might be of interest to you for large templates or performance sensitive code, or otherwise having a nice interface to blaze-builder

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 ToText instance.

Please see http://www.yesodweb.com/book/shakespearean-templates for a more thorough description and examples of the shakespeare family of template languages.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.11, 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.0.7, 1.0.0.8, 1.0.0.9, 1.0.0.10, 1.0.1, 1.0.2, 1.1.0
Dependencies base (>=4 && <5), shakespeare (>=2.0) [details]
License MIT
Author Greg Weber <greg@gregweber.info>
Maintainer Greg Weber <greg@gregweber.info>
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-03-30T06:15:09Z
Distributions LTSHaskell:1.1.0, NixOS:1.1.0, Stackage:1.1.0
Reverse Dependencies 15 direct, 85 indirect [details]
Downloads 37691 total (120 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2016-12-17 [all 7 reports]