git.iko.soy/typeable/pandoc
on master help sign in
Added writerTemplate and writerVariables to writerOptions.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1678 788f1e2b-df1e-0410-8736-df70ead52e1b

commit732e6a109721f0b456962e8eaff674996f72dd22 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 31 Dec 2009, 01:09 (17 years ago) parentca97f14
2 files changed+6
src/Text/Pandoc/Shared.hs+4 src/pandoc.hs+2
src/Text/Pandoc/Shared.hs+4
@@ -980,6 +980,8 @@ data ObfuscationMethod = NoObfuscation
980980-- | Options for writers
981981data WriterOptions = WriterOptions
982982 { writerStandalone :: Bool -- ^ Include header and footer
983+ , writerTemplate :: String -- ^ Template to use in standalone mode
984+ , writerVariables :: [(String, String)] -- ^ Variables to set in template
983985 , writerHeader :: String -- ^ Header for the document
984986 , writerTitlePrefix :: String -- ^ Prefix for HTML titles
985987 , writerTabStop :: Int -- ^ Tabstop for conversion btw spaces and tabs
@@ -1003,6 +1005,8 @@ data WriterOptions = WriterOptions
10031005defaultWriterOptions :: WriterOptions
10041006defaultWriterOptions =
10051007 WriterOptions { writerStandalone = False
1008+ , writerTemplate = ""
1009+ , writerVariables = []
10061010 , writerHeader = ""
10071011 , writerTitlePrefix = ""
10081012 , writerTabStop = 4
src/pandoc.hs+2
@@ -617,6 +617,8 @@ main = do
617617 then defaultHeader
618618 else customHeader) ++ csslink ++ includeHeader
619619 let writerOptions = WriterOptions { writerStandalone = standalone',
620+ writerTemplate = "", -- TODO
621+ writerVariables = [], -- TODO
620622 writerHeader = header,
621623 writerTitlePrefix = titlePrefix,
622624 writerTabStop = tabStop,