class Marten::Template::Parser::Lexer


The Marten template lexer.

This class allows to perform a lexical analysis from a raw template: given a text input, the #tokenize method converts a sequence of characters into an array of tokens that represents the ramifications of the considered template (tags, variables, comments and raw text).

Defined in:



Instance Method Summary

Constructor Detail

def : String) #

[View source]

Instance Method Detail

def tokenize : Array(Token) #

Processes the template source and returns an array of lexical tokens.

[View source]