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

Portabilityunknown
Stabilityexperimental
MaintainerJeremy Hull <sourdrums@gmail.com>
Safe HaskellNone

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

renderTemplateSource

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