Safe Haskell | None |
---|---|
Language | Haskell2010 |
Combinators for working with Shake.
See the source of buildAction
for example usage.
Synopsis
- buildHtmlMulti :: forall repr meta. (Markup repr, FromJSON meta) => Path Rel File -> (Document repr meta -> Html ()) -> Action [Document repr meta]
- buildHtml :: Path Rel File -> Html () -> Action ()
- readDocMulti :: forall repr meta. (Markup repr, FromJSON meta) => Path Rel File -> Action [Document repr meta]
- buildStaticFiles :: [Path Rel File] -> Action ()
- data Dirs = Dirs (Path Rel Dir, Path Rel Dir)
Basic helpers
:: (Markup repr, FromJSON meta) | |
=> Path Rel File | Source file patterns |
-> (Document repr meta -> Html ()) | How to render the given document to HTML |
-> Action [Document repr meta] | List of relative path to generated HTML and the associated document |
Convert the given pattern of source files into their HTML.
buildHtml :: Path Rel File -> Html () -> Action () Source #
Build a single HTML file with the given value
Read helpers
Like readDoc'
but operates on multiple files