Safe Haskell | None |
---|---|
Language | Haskell2010 |
Knit.Report.Output
Synopsis
- data PandocWriterConfig = PandocWriterConfig {}
- type TemplateVariables = Map String String
- type WriterOptionsF = WriterOptions -> WriterOptions
- mkPandocWriterConfig :: TemplatePath -> TemplateVariables -> WriterOptionsF -> IO PandocWriterConfig
- data TemplatePath
- data CssPath
- addCss :: CssPath -> TemplateVariables -> IO TemplateVariables
- writeAllPandocResultsWithInfo :: Text -> Text -> [DocWithInfo PandocInfo Text] -> IO ()
- writePandocResultWithInfo :: Text -> Text -> DocWithInfo PandocInfo Text -> IO ()
- writeAndMakePathLT :: Text -> Text -> IO ()
- writeAndMakePath :: Text -> (a -> Text) -> a -> IO ()
Pandoc Writer Configuration
data PandocWriterConfig Source #
Constructors
PandocWriterConfig | |
Fields
|
type WriterOptionsF = WriterOptions -> WriterOptions Source #
mkPandocWriterConfig :: TemplatePath -> TemplateVariables -> WriterOptionsF -> IO PandocWriterConfig Source #
Make a PandocWriterConfig
from a PandocTemplate specification
Pandoc Template Types
data TemplatePath Source #
Type to specify path to template, which may be in a directory installed with knit-haskell.
Type to specify path to Css, which may be in a directory installed with knit-haskell or not.
Constructors
FromIncludedCssDir Text | |
FullySpecifiedCssPath Text |
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.