mustache-0.1.0.0: A mustache template parser library.

Copyright(c) Justus Adam, 2015
LicenseLGPL-3
Maintainerdevelopment@justusadam.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Text.Mustache.Parser

Contents

Description

 

Synopsis

Generic parsing functions

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

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

Configurations

emptyConf :: MustacheConf Source

Empty configuration

defaultConf :: MustacheConf Source

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

Parser

Components

parseSection :: MNodeParser Source

parseVariable :: MNodeParser Source

parsePartial :: MNodeParser Source

parseUnescapedVar :: MNodeParser Source

Mustache Constants