Copyright | (c) Justus Adam, 2015 |
---|---|
License | LGPL-3 |
Maintainer | development@justusadam.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
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
Representation of stateful context for the substitution process
Context [α] α |