ctemplate-0.1: Binding to the Google ctemplate libraryContentsIndex
Text.CTemplate
Description

CTemplate is the template system that Google uses for many of their sites, including the search results from the main www.google.com web search. It's simple templating system, but has easy to use escaping functions.

See http://goog-ctemplate.sourceforge.net/doc/howto.html for documentation (esp see the Tips link at the end of that)

Synopsis
data Dictionary = Dictionary FilePath [(String, Variable)]
data Variable
= StringV String
| BSV ByteString
| SectionV [[(String, Variable)]]
| IncludedV Dictionary
data Option
= DontStrip
| StripBlankLines
| StripWhitespace
expand :: Option -> Dictionary -> IO (Maybe ByteString)
setTemplateRootDirectory :: FilePath -> IO ()
Documentation
data Dictionary
This is a dictionary. Relative filenames are resolved in the current directory
Constructors
Dictionary FilePath [(String, Variable)]
show/hide Instances
data Variable
Constructors
StringV Stringa string value (note - no char encoding performed)
BSV ByteStringa string value from a ByteString
SectionV [[(String, Variable)]]a (possibly repeated) section
IncludedV Dictionaryan included dictionary
show/hide Instances
data Option
Constructors
DontStrip
StripBlankLines
StripWhitespace
show/hide Instances
expand :: Option -> Dictionary -> IO (Maybe ByteString)
Expand a template given the values to fill it
setTemplateRootDirectory :: FilePath -> IO ()
Set the directory where templates with non-absolute filenames will be loaded from
Produced by Haddock version 2.1.0