heist: An xhtml templating system

[ bsd3, library, snap, web ] [ Propose Tags ]
Versions [RSS] 0.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, 0.14.1.2, 0.14.1.3, 0.14.1.4, 1.0.0.0, 1.0.1.0, 1.0.1.1, 1.0.1.2, 1.0.1.3, 1.1, 1.1.0.1, 1.1.1.0, 1.1.1.1, 1.1.1.2
Dependencies attoparsec (>=0.8.1 && <0.9), attoparsec-text (>=0.8 && <0.9), base (>=4 && <5), blaze-builder (>=0.2 && <0.3), bytestring, containers, directory, directory-tree, filepath, MonadCatchIO-transformers (>=0.2.1 && <0.3), mtl (>=2.0 && <2.1), process, random, text (>=0.10 && <0.12), transformers, xmlhtml (>=0.1 && <0.2) [details]
License BSD-3-Clause
Author Doug Beardsley, Gregory Collins
Maintainer snap@snapframework.com
Category Web
Home page http://snapframework.com/
Source repo head: git clone http://git.snapframework.com/heist.git
Uploaded by DougBeardsley at 2011-02-06T16:54:29Z
Distributions Debian:1.1.0.1, FreeBSD:0.14.1.1, LTSHaskell:1.1.1.2, NixOS:1.1.1.2, Stackage:1.1.1.2
Reverse Dependencies 24 direct, 50 indirect [details]
Downloads 69515 total (124 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for heist-0.5.0.1

[back to package description]

Heist

Heist, part of the Snap Framework, is a Haskell library for xhtml 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.