Safe Haskell | None |
---|---|
Language | Haskell2010 |
Heist.Extra
Synopsis
- runCustomNode :: Node -> Splices (Splice Identity) -> Splice Identity
- runCustomTemplate :: Template -> Splices (Splice Identity) -> Splice Identity
- lookupHtmlTemplate :: forall (n :: Type -> Type) (m :: Type -> Type). Monad n => ByteString -> HeistT m n (Maybe Template)
- lookupHtmlTemplateMust :: forall (m :: Type -> Type) (n :: Type -> Type). Monad n => ByteString -> HeistT m n Template
- availableTemplates :: forall (n :: Type -> Type). HeistState n -> [Text]
Documentation
runCustomNode :: Node -> Splices (Splice Identity) -> Splice Identity Source #
Useful for running a splice against an arbitrary node (such as that pulled from pandoc.tpl)
lookupHtmlTemplate :: forall (n :: Type -> Type) (m :: Type -> Type). Monad n => ByteString -> HeistT m n (Maybe Template) Source #
lookupHtmlTemplateMust :: forall (m :: Type -> Type) (n :: Type -> Type). Monad n => ByteString -> HeistT m n Template Source #
availableTemplates :: forall (n :: Type -> Type). HeistState n -> [Text] Source #