The heist package

[Tags: bsd3, library]

Heist is a powerful template system that supports both HTML5 and XML. Some of Heist's features are:


[Skip to ReadMe]

Properties

Versions0.1.1, 0.1.2, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.3.0.0, 0.4.0.0, 0.4.0.1, 0.5.0.0, 0.5.0.1, 0.5.1.0, 0.5.1.1, 0.5.2, 0.5.2.1, 0.5.3, 0.6.0, 0.6.0.1, 0.6.1, 0.7.0, 0.7.0.1, 0.8.0, 0.8.1, 0.8.1.1, 0.8.2, 0.10.0, 0.10.1, 0.10.2, 0.10.2.1, 0.11.0, 0.11.0.1, 0.11.1, 0.12.0, 0.13.0, 0.13.0.1, 0.13.0.2, 0.13.0.3, 0.13.0.4, 0.13.0.5, 0.13.0.6, 0.13.1, 0.13.1.1, 0.13.1.2, 0.14.0, 0.14.0.1, 0.14.1, 0.14.1.1
Change logNone available
Dependenciesaeson (==0.6.*), attoparsec (==0.10.*), base (==4.*), blaze-builder (>=0.2 && <0.4), blaze-html (>=0.4 && <0.7), bytestring (>=0.9 && <0.11), containers (>=0.2 && <0.6), directory (>=1.1 && <1.3), directory-tree (>=0.10 && <0.12), dlist (==0.5.*), errors (==1.4.*), filepath (==1.3.*), hashable (>=1.1 && <1.3), MonadCatchIO-transformers (>=0.2.1 && <0.4), mtl (>=2.0 && <2.2), process (==1.1.*), random (>=1.0.1.0 && <1.1), text (>=0.10 && <0.12), time (>=1.1 && <1.5), transformers (==0.3.*), unordered-containers (>=0.1.4 && <0.3), vector (>=0.9 && <0.11), xmlhtml (>=0.2.3 && <0.3) [details]
LicenseBSD3
AuthorDoug Beardsley, Gregory Collins
Maintainersnap@snapframework.com
CategoryWeb, Snap
Home pagehttp://snapframework.com/
Source repositoryhead: git clone https://github.com/snapframework/heist.git
UploadedTue Sep 17 17:53:51 UTC 2013 by DougBeardsley
DistributionsDebian:0.14.1.1, FreeBSD:0.14.1.1, LTSHaskell:0.14.1.1, NixOS:0.14.1.1, Stackage:0.14.1.1
Downloads19849 total (736 in last 30 days)
Votes
1 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for heist-0.13.0.1

Heist

Heist, part of the Snap Framework, is a Haskell library for xml/html templating. It uses simple XML tags to bind values to your templates in a straightforward way. For example, if you were to put the following in a template:

<bind tag="message">some text</bind>
<p><message/></p>

the resulting xhtml would be

<p>some text</p>

Likewise, if you need to add text to an attribute,

<bind tag="special">special-id</bind>
<div id="$(special)">very special</div>

gives you

<div id="special-id">very special</div>

Values can also be pulled from "Splices" (see the documentation for more information.)

Building heist

The heist library is built using Cabal and Hackage. Just run

cabal install

from the heist toplevel directory.

Building the Haddock Documentation

The haddock documentation can be built using the supplied haddock.sh shell script:

./haddock.sh

The docs get put in dist/doc/html/.

Building the testsuite

To build the test suite, cd into the test/ directory and run

$ cabal configure
$ cabal build

From here you can invoke the testsuite by running:

$ ./runTestsAndCoverage.sh 

The testsuite generates an hpc test coverage report in test/dist/hpc.