Safe Haskell | None |
---|---|
Language | Haskell2010 |
- parse :: FilePath -> Text -> Either ParseError AST
- parseWithConf :: MustacheConf -> FilePath -> Text -> Either ParseError AST
- data MustacheConf
- defaultConf :: MustacheConf
- type Parser = Parsec Text MustacheState
- parseText :: Parser AST
- sectionBegin :: Char
- sectionEnd :: Char
- invertedSectionBegin :: Char
- unescape2 :: (Char, Char)
- unescape1 :: Char
- delimiterChange :: Char
- nestingSeparator :: Char
Generic parsing functions
parse :: FilePath -> Text -> Either ParseError AST Source
Runs the parser for a mustache template, returning the syntax tree.
parseWithConf :: MustacheConf -> FilePath -> Text -> Either ParseError AST Source
Configurations
data MustacheConf Source
defaultConf :: MustacheConf Source
Default configuration (delimiters = ("{{", "}}"))
Parser
Components
Mustache Constants
#
sectionEnd :: Char Source
/