@hackage / shakespeare

A toolkit for making compile-time interpolated templates

Latest2.2.0

About

Metadata

  • Last updated , by parsonsmatt
  • License MIT
  • Categories Web Development
  • Maintained by: Michael Snoyman <michael@snoyman.com>

  • Lottery factor: 3

Links

Installation

Package Flags

Use the -f option with cabal commands to enable 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 roy render function

Readme

Shakespeare is a family of type-safe, efficient template languages. Shakespeare templates are expanded at compile-time, ensuring that all interpolated variables are in scope. Variables are interpolated according to their type through a typeclass.

Shakespeare templates can be used inline with a quasi-quoter or in an external file.

Note there is no dependency on haskell-src-extras. Instead Shakespeare believes logic should stay out of templates and has its own minimal Haskell parser.

Packages that use this: xml-hamlet

Please see the documentation at http://www.yesodweb.com/book/shakespearean-templates for more details.