mustache-0.2.0.0: A mustache template parser library.

Safe HaskellNone
LanguageHaskell2010

Text.Mustache.Parser

Contents

Synopsis

Generic parsing functions

parse :: FilePath -> Text -> Either ParseError AST Source

Runs the parser for a mustache template, returning the syntax tree.

Configurations

defaultConf :: MustacheConf Source

Default configuration (delimiters = ("{{", "}}"))

Parser

type Parser = Parsec Text MustacheState Source

Components

Mustache Constants

unescape2 :: (Char, Char) Source

{ and }