Mustache template as name of “top-level” template and a collection of all available templates (partials).
Template is a Semigroup. This means that you can combine Templates
(and their caches) using the (<>) operator, the resulting Template
will have the same currently selected template as the left one. Union of
caches is also left-biased.
Constructors
TemplatetemplateActual :: PNameName of currently “selected” template (top-level one).
templateCache :: Map PName [Node]Collection of all templates that are available for interpolation (as partials). The top-level one is also contained here and the “focus” can be switched easily by modifying templateActual.
Instances7Eq, Data, Ord, Show, Generic, Semigroup, …
Eq TemplateDefined in microstache-1.0.3 · Text.Microstache.TypeData TemplateDefined in microstache-1.0.3 · Text.Microstache.TypeOrd TemplateDefined in microstache-1.0.3 · Text.Microstache.TypeShow TemplateDefined in microstache-1.0.3 · Text.Microstache.TypeGeneric TemplateDefined in microstache-1.0.3 · Text.Microstache.TypeSemigroup TemplateDefined in microstache-1.0.3 · Text.Microstache.Typetype Rep Template = D1 ('MetaDataDefined in microstache-1.0.3 · Text.Microstache.Type"Template"
"Text.Microstache.Type"
"microstache-1.0.3-4rHjxrbVz6wKKKCdpULkxl"
'False) (C1 ('MetaCons"Template"
'PrefixI 'True) (S1 ('MetaSel ('Just"templateActual"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PName) :*: S1 ('MetaSel ('Just"templateCache"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map PName [Node]))))