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

Portabilityunknown
Stabilityexperimental
MaintainerJeremy Hull <sourdrums@gmail.com>
Safe HaskellNone

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 [Tokens]Source

Top level Parser that will translate Text into [Tokens]

literalParser :: Parser TokensSource

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

variableParser :: Parser TokensSource

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

variableParser' :: Parser TokensSource

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

This is without the delimiter

conditionParser :: Parser TokensSource

Parser for if statements, that will result in the ConditionTok

loopParser :: Parser TokensSource

Parser for for loops, that will result in the LoopTok

includeParser :: Parser TokensSource

Parser for includes, that will result in IncludeTok