class Marten::Template::Parser::Lexer

Overview

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:

marten/template/parser/lexer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String) #

[View source]

Instance Method Detail

def tokenize : Array(Token) #

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


[View source]