heist-0.14.1: An Haskell template system supporting both HTML5 and XML.

Safe HaskellNone
LanguageHaskell98

Heist.Splices

Synopsis

Documentation

ifISplice :: Monad m => Bool -> Splice m Source

Run the splice contents if given condition is True, make splice disappear if not.

ifCSplice :: Monad m => (t -> Bool) -> RuntimeSplice m t -> Splice m Source

Function for constructing if splices that use a runtime predicate function to determine whether the node's children should be rendered.