sitepipe-0.2.0.0: A simple to understand static site generator

Safe HaskellNone
LanguageHaskell2010

SitePipe.Readers

Contents

Synopsis

Built-in readers

markdownReader :: String -> IO String Source #

Reads markdown files into html

textReader :: String -> IO String Source #

Reads text files without processing

Reader Generators

mkPandocReader :: (ReaderOptions -> String -> Either PandocError Pandoc) -> String -> IO String Source #

Given any standard pandoc reader (see Text.Pandoc; e.g. readMarkdown, readDocX) makes a resource reader compatible with resourceLoader.

docs <- resourceLoader (mkPandocReader readDocX) ["docs/*.docx"]

Pandoc Writers

pandocToHTML :: Pandoc -> String Source #

A simple helper which renders pandoc to HTML; good for use with mkPandocReaderWith