Mustache template as the name of the “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 :: PNameThe name of the currently “selected” template.
templateCache :: Map PName [Node]A 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.
Instances8Eq, Data, Ord, Show, Generic, Semigroup, …
Eq TemplateDefined in stache-2.3.4 · Text.Mustache.TypeData TemplateDefined in stache-2.3.4 · Text.Mustache.TypeOrd TemplateDefined in stache-2.3.4 · Text.Mustache.TypeShow TemplateDefined in stache-2.3.4 · Text.Mustache.TypeGeneric TemplateDefined in stache-2.3.4 · Text.Mustache.TypeSemigroup TemplateDefined in stache-2.3.4 · Text.Mustache.TypeLift TemplateDefined in stache-2.3.4 · Text.Mustache.Typetype Rep Template = D1 ('MetaDataDefined in stache-2.3.4 · Text.Mustache.Type"Template"
"Text.Mustache.Type"
"stache-2.3.4-CiKPz837FD1GjnbWsu0tob"
'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]))))