pandoc-1.19.2.1: Conversion between markup formats

CopyrightCopyright (C) 2009-2016 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' :: (ToJSON a, TemplateTarget b) => String -> a -> b Source #

Like applyTemplate, but raising an error if compilation fails.

class TemplateTarget a #

Minimal complete definition

toTarget

getDefaultTemplate Source #

Arguments

:: Maybe FilePath

User data directory to search first

-> String

Name of writer

-> IO (Either IOException String) 

Get default template for the specified writer.