Headroom.Template.Mustache
Description
Provides support for Mustache templates using the Template type class.
Template
newtype Mustache Source #
The Mustache template.
Constructors
Defined in Headroom.Template.Mustache
Methods
showsPrec :: Int -> Mustache -> ShowS #
show :: Mustache -> String #
showList :: [Mustache] -> ShowS #
Support for Mustache templates.
templateExtensions :: proxy Mustache -> NonEmpty Text Source #
parseTemplate :: MonadThrow m => Maybe Text -> Text -> m Mustache Source #
renderTemplate :: MonadThrow m => HashMap Text Text -> Mustache -> m Text Source #