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

Safe HaskellNone




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

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

ifCSplice :: Monad m => (t -> Bool) -> Promise t -> Splice mSource

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