Copyright | Copyright (C) 2009-2017 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
A simple templating system with variable substitution and conditionals.
- module Text.DocTemplates
- renderTemplate' :: (PandocMonad m, ToJSON a, TemplateTarget b) => String -> a -> m b
- getDefaultTemplate :: PandocMonad m => String -> m String
Documentation
module Text.DocTemplates
renderTemplate' :: (PandocMonad m, ToJSON a, TemplateTarget b) => String -> a -> m b Source #
Like applyTemplate
, but runs in PandocMonad and
raises an error if compilation fails.
:: PandocMonad m | |
=> String | Name of writer |
-> m String |
Get default template for the specified writer.