karver-0.1.2: A simple template engine, inspired by jinja2

CopyrightJeremy Hull 2013
LicenseBSD3
MaintainerJeremy Hull <sourdrums@gmail.com>
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell98

Text.Karver.Parse

Description

All the Parsers are defined here, including the one used by the top level module Text.Karver.

Synopsis

Documentation

templateParser :: Parser [Token] Source

Top level Parser that will translate Text into [Token]

literalParser :: Parser Token Source

Takes everything until it reaches a {, resulting in the LiteralTok

variableParser :: Parser Token Source

Parser for all the variable types. Returning on of the following Tokens:

variableParser' :: Parser Token Source

Parser for all the variable types. Returning on of the following Tokens:

This is without the delimiter

conditionParser :: Parser Token Source

Parser for if statements, that will result in the ConditionTok

loopParser :: Parser Token Source

Parser for for loops, that will result in the LoopTok

includeParser :: Parser Token Source

Parser for includes, that will result in IncludeTok