GithubHelp home page GithubHelp logo

tripshot / heist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snapframework/heist

0.0 0.0 0.0 1.37 MB

An xhtml-based templating engine, allowing Haskell functions to be bound to XML tags.

Home Page: http://snapframework.com/

License: BSD 3-Clause "New" or "Revised" License

Shell 0.40% Haskell 94.54% CSS 3.54% Smarty 1.51%

heist's Introduction

Heist

Build Status

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.

heist's People

Contributors

mightybyte avatar gregorycollins avatar kaol avatar wlangstroth avatar imalsogreg avatar cdsmith avatar 23skidoo avatar duairc avatar hvr avatar sopvop avatar sol avatar soiamsong avatar bergmark avatar aslatter avatar chowells79 avatar aluink avatar h-3-0 avatar centromere avatar norm2782 avatar ludat avatar markwright avatar michaelxavier avatar ozataman avatar rahulmutt avatar schell avatar trofi avatar wiz avatar alexanderkjeldaas avatar danburton avatar hesselink avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.