yate-0.1.0.2: Yet Another Template Engine

Safe HaskellNone
LanguageHaskell2010

Text.Yate.Parser

Synopsis

Documentation

parseTemplate Source #

Arguments

:: Text

Content of the template

-> Either String (Template a) 

Parse a template and return an error otherwise

parseTemplateWith Source #

Arguments

:: Text

Left delimiter (default: {%)

-> Text

Right delimiter (default: %})

-> Text

Content of the template

-> Either String (Template a) 

Same as parseTemplate but take the left and right delimiters