pandoc-2.1.1: Conversion between markup formats

CopyrightCopyright (C) 2009-2018 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Text.Pandoc.Templates

Description

A simple templating system with variable substitution and conditionals.

Synopsis

Documentation

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.

getDefaultTemplate Source #

Arguments

:: PandocMonad m 
=> String

Name of writer

-> m String 

Get default template for the specified writer.