MustacheSpecialState

Implements a quote string state object for Mustache templates.

Description

The MustacheSpecialState class allows you to implement a quote string state object for Mustache templates.

Constructors

NewMustacheSpecialState

Creates new instance of MustacheSpecialState

NewMustacheSpecialState() *MustacheSpecialState

Methods

NextToken

Gets the next token from the stream started from the character linked to this state.

(c *MustacheSpecialState) NextToken(scanner IScanner, tokenizer ITokenizer) *Token

  • scanner: IScanner - textual string to be tokenized.
  • tokenizer: ITokenizer - tokenizer class that controls the process.
  • returns: *Token - next token from the top of the stream.