Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- buildDir :: FilePath -> RenderMode -> RunMode -> FilePath -> IO ()
- buildFile :: FilePath -> RenderMode -> RunMode -> FilePath -> FilePath -> IO ()
- type StmStore = TVar Store
- buildDirInMemory :: FilePath -> RenderMode -> RunMode -> StmStore -> IO ()
- buildFileInMemory :: FilePath -> RenderMode -> RunMode -> StmStore -> FilePath -> IO ()
- listTemplates :: FilePath -> IO [FilePath]
Documentation
buildDirInMemory :: FilePath -> RenderMode -> RunMode -> StmStore -> IO () Source #
buildFileInMemory :: FilePath -> RenderMode -> RunMode -> StmStore -> FilePath -> IO () Source #