Implements a Mustache parser class.
Description
The MustacheParser class allows you to implement a Mustache parser.
Properties
InitialTokens
List of original Mustache tokens.
publicIList<MustacheToken> InitialTokens { get; }
OriginalTokens
List of original Mustache tokens.
publicIList<Token> OriginalTokens { get; set; }
ResultTokens
List of parsed Mustache tokens.
publicIList<[MustacheToken](../mustache_token> ResultTokens { get; }
Template
Mustache template.
publicstring Template { get; set; }
VariableNames
List of found variable names.
publicIList<string> VariableNames
- returns: IList<string> - found variable names.
 
Instance methods
Clear
Clears parsing results.
publicvoid Clear()
ParseString
Sets a new Mustache string and parses it into internal byte code.
publicvoid ParseString(string mustache)
- mustache: string - new Mustache string.
 
ParseTokens
Sets a new mustache Token and parses it into internal byte code.
publicvoid ParseTokens(IList<Token> tokens)
- mustache: IList<Token> - new Mustache string.