Text.Templating.Heist.Splices.Markdown

heist-0.7.0.1: An (x)html templating system

Text.Templating.Heist.Splices.Markdown

Synopsis

- data PandocMissingException = PandocMissingException
- data MarkdownException = MarkdownException ByteString
- data NoMarkdownFileException = NoMarkdownFileException
- markdownTag :: Text
- markdownSplice :: MonadIO m => Splice m
- pandoc :: FilePath -> FilePath -> FilePath -> IO ByteString
- pandocBS :: FilePath -> ByteString -> IO ByteString
- readProcessWithExitCode' :: FilePath -> [String] -> ByteString -> IO (ExitCode, ByteString, ByteString)

# Documentation

data PandocMissingException

Constructors

PandocMissingException |

Instances

Show PandocMissingException |
Typeable PandocMissingException |
Exception PandocMissingException |

data MarkdownException

Constructors

MarkdownException ByteString |

Instances

Show MarkdownException |
Typeable MarkdownException |
Exception MarkdownException |

data NoMarkdownFileException

Constructors

NoMarkdownFileException |

Instances

Show NoMarkdownFileException |
Typeable NoMarkdownFileException |
Exception NoMarkdownFileException |

markdownTag :: Text

Default name for the markdown splice.

markdownSplice :: MonadIO m => Splice m

Implementation of the markdown splice.

pandoc :: FilePath -> FilePath -> FilePath -> IO ByteString

pandocBS :: FilePath -> ByteString -> IO ByteString

readProcessWithExitCode'

Arguments

:: FilePath | command to run
-> [String] | any arguments
-> ByteString | standard input
-> IO (ExitCode, ByteString, ByteString) | exitcode, stdout, stderr