knit-haskell-0.7.0.0: a minimal Rmarkdown sort-of-thing for haskell, by way of Pandoc

Safe HaskellNone
LanguageHaskell2010

Knit.Report.Output

Contents

Synopsis

Pandoc Writer Configuration

data PandocWriterConfig Source #

Constructors

PandocWriterConfig 

Fields

type WriterOptionsF = WriterOptions -> WriterOptions Source #

Pandoc Template Types

data TemplatePath Source #

Type to specify path to template, which may be in a directory installed with knit-haskell.

data CssPath Source #

Type to specify path to Css, which may be in a directory installed with knit-haskell or not.

addCss :: CssPath -> TemplateVariables -> IO TemplateVariables Source #

Add a CssPath to an existing TemplateVariables which may already have Css paths specified

file writing helpers

writeAllPandocResultsWithInfo :: Text -> Text -> [DocWithInfo PandocInfo Text] -> IO () Source #

Write each lazy text from a list of DocWithInfo to disk. File names come from the PandocInfo Directory and file extension are function arguments.

writePandocResultWithInfo Source #

Arguments

:: Text

directory

-> Text

extension

-> DocWithInfo PandocInfo Text 
-> IO () 

Write the Lazy Text in a DocWithInfo to disk Name comes from the PandocInfo Directory and file extection are arguments to the function Create the parent directory or directories, if necessary.

writeAndMakePathLT :: Text -> Text -> IO () Source #

Write Lazy Text (Pandoc's Html result) to disk. Create the parent directory or directories, if necessary.

writeAndMakePath :: Text -> (a -> Text) -> a -> IO () Source #

Write (to disk) something which can be converted to text. Create the parent directory or directories, if necessary.