mustache-0.2.0.0: A mustache template parser library.

Copyright(c) Justus Adam, 2015
LicenseLGPL-3
Maintainerdevelopment@justusadam.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Text.Mustache.Render

Contents

Description

 

Synopsis

Substitution

substitute :: ToMustache j => Template -> j -> Text Source

Substitutes all mustache defined tokens (or tags) for values found in the provided data structure.

Equivalent to substituteValue . toMustache.

substituteValue :: Template -> Value -> Text Source

Substitutes all mustache defined tokens (or tags) for values found in the provided data structure.

Working with Context

data Context α Source

Representation of stateful context for the substitution process

Constructors

Context [α] α 

Util