stache-2.3.3: Mustache templates for Haskell
Copyright© 2016–present Stack Builders
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov92@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Mustache.Render

Description

Functions for rendering Mustache templates. You don't usually need to import the module, because Text.Mustache re-exports everything you may need, import that module instead.

Synopsis

Documentation

renderMustache :: Template -> Value -> Text Source #

Render a Mustache Template using Aeson's Value to get actual values for interpolation.

renderMustacheW :: Template -> Value -> ([MustacheWarning], Text) Source #

Like renderMustache, but also returns a collection of warnings.

Since: 1.1.1