Text.Templating.Heist.Splices.Cache

heist-0.7.0.1: An (x)html templating system

Text.Templating.Heist.Splices.Cache

Synopsis

- data CacheTagState
- mkCacheTag :: MonadIO m => IO (HeistState m -> HeistState m, CacheTagState)
- clearCacheTagState :: CacheTagState -> IO ()

# Documentation

data CacheTagState

State for storing cache tag information

mkCacheTag :: MonadIO m => IO (HeistState m -> HeistState m, CacheTagState)

Returns a function that modifies a HeistState to include a "cache" tag. The cache tag is not bound automatically with the other default Heist tags. This is because this function also returns CacheTagState, so the user will be able to clear it with the `clearCacheTagState` function.

clearCacheTagState :: CacheTagState -> IO ()

Clears the cache tag state.