karver-0.1.2: A simple template engine, inspired by jinja2

CopyrightJeremy Hull 2013
LicenseBSD3
MaintainerJeremy Hull <sourdrums@gmail.com>
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell98

Text.Karver

Description

The Text.Karver interface for translation Text from it's template syntax, to a generated value — based on the data that was given.

Synopsis

Documentation

renderTemplate Source

Arguments

:: HashMap Text Value

Data map for variables inside a given template

-> Text

Template

-> Text 

Renders a template

renderTemplate' Source

Arguments

:: Text

JSON data, for variables inside a given template

-> Text

Template

-> Text 

Similar to renderTemplate, only it takes JSON Text instead of a HashMap