lex method

Iterable<Token> lex(
  1. String source, {
  2. String? path,
})

Lex the given source and return a list of tokens.

This can be useful for extension development and debugging templates.

Implementation

Iterable<Token> lex(String source, {String? path}) {
  return lexer.tokenize(source, path: path);
}