rib-0.5.0.0: Static site generator using Shake

Safe HaskellNone
LanguageHaskell2010

Rib.Shake

Contents

Description

Combinators for working with Shake.

See the source of buildAction for example usage.

Synopsis

Basic helpers

buildHtmlMulti Source #

Arguments

:: (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

readDocMulti Source #

Arguments

:: (Markup repr, FromJSON meta) 
=> Path Rel File

Source file patterns

-> Action [Document repr meta] 

Like readDoc' but operates on multiple files

Misc

buildStaticFiles :: [Path Rel File] -> Action () Source #

Shake action to copy static files as is

data Dirs Source #

Constructors

Dirs (Path Rel Dir, Path Rel Dir)