mustache-0.1.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 => MustacheTemplate -> j -> Either String Text Source

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

Equivalent to substituteValue . toMustache.

substituteValue :: MustacheTemplate -> Value -> Either String Text Source

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

Working with Context

Util