slab-0.0.3.0: A programmable markup language to generate HTML
Safe HaskellSafe-Inferred
LanguageHaskell2010

Slab.Build

Description

Slab.Build provides types and functions to easily build Slab templates. There are mostly two ways to build templates: by writing the resulting HTML to files, or by writing them to an STM-based store.

Writing to disk is used by the slab watch command. Writing to the STM store is used by the slab serve command.

Synopsis

Documentation

type StmStore = TVar Store Source #

buildDirInMemory :: FilePath -> RenderMode -> RunMode -> StmStore -> IO () Source #

A version of buildDir that doesn't write files to disk, but instead record the generated Blocks in STM.