rib-0.10.0.0: Static site generator based on Shake

Safe HaskellNone
LanguageHaskell2010

Rib.Shake

Contents

Description

Combinators for working with Shake.

Synopsis

Basic helpers

buildStaticFiles :: [FilePath] -> Action () Source #

Shake action to copy static files as is.

forEvery Source #

Arguments

:: [FilePath]

Source file patterns (relative to ribInputDir)

-> (FilePath -> Action a) 
-> Action [a] 

Run the given action when any file matching the patterns changes

Writing only

writeFileCached :: FilePath -> String -> Action () Source #

Write the given file but only when it has been modified.

Also, always writes under ribOutputDir

Misc

getCliConfig :: Action CliConfig Source #

Get rib settings from a shake Action monad.

ribInputDir :: Action FilePath Source #

Input directory containing source files

This is same as the first argument to run

ribOutputDir :: Action FilePath Source #

Output directory where files are generated

This is same as the second argument to run