Text.Templating.Heist.Splices.Static

heist-0.7.0.1: An (x)html templating system

Text.Templating.Heist.Splices.Static

Synopsis

- data StaticTagState
- bindStaticTag :: MonadIO m => HeistState m -> IO (HeistState m, StaticTagState)
- clearStaticTagCache :: StaticTagState -> IO ()

# Documentation

data StaticTagState

State for storing static tag information

bindStaticTag :: MonadIO m => HeistState m -> IO (HeistState m, StaticTagState)

Modifies a HeistState to include a "static" tag. The static tag is not bound automatically with the other default Heist tags. This is because this function also returns StaticTagState, so the user will be able to clear it with the `clearStaticTagCache` function.

clearStaticTagCache :: StaticTagState -> IO ()

Clears the static tag state.