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