Copyright | (c) Daniel Firth 2020 |
---|---|
License | MIT |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Template
- buildPageAction :: MonadAction m => Path Rel File -> Value -> Path Rel File -> m ()
- buildPageActionWithin :: MonadAction m => Within Rel (Path Rel File) -> Value -> Within Rel (Path Rel File) -> m ()
- compileTemplate' :: MonadAction m => Path Rel File -> m Template
Documentation
A compiled Template with metadata.
Instances
Show Template | |
Lift TemplateCache | |
Defined in Text.Mustache.Internal.Types lift :: TemplateCache -> Q Exp # | |
Lift Template | |
MonadReader (Context Value, TemplateCache) SubM | |
Defined in Text.Mustache.Internal.Types |
:: MonadAction m | |
=> Path Rel File | The HTML templatate. |
-> Value | A JSON value. |
-> Path Rel File | The out filepath. |
-> m () |
Build a single page straight from a template.
buildPageActionWithin :: MonadAction m => Within Rel (Path Rel File) -> Value -> Within Rel (Path Rel File) -> m () Source #
Like buildPageAction
, but uses Within
values.
compileTemplate' :: MonadAction m => Path Rel File -> m Template Source #
Lifted version of compileTemplate'
with well-typed Path
.