C# 클래스 Mustache.FormatCompiler

Parses a format string and returns a text generator.
파일 보기 프로젝트 열기: jehugaleahsa/mustache-sharp 1 사용 예제들

공개 메소드들

메소드 설명
Compile ( string format ) : Mustache.Generator

Builds a text generator based on the given format.

FormatCompiler ( ) : System

Initializes a new instance of a FormatCompiler.

RegisterTag ( Mustache.TagDefinition definition, bool isTopLevel ) : void

Registers the given tag definition with the parser.

비공개 메소드들

메소드 설명
buildCompoundGenerator ( Mustache.TagDefinition tagDefinition, List context, Mustache.CompoundGenerator generator, string format, int formatIndex ) : int
findNextTag ( Mustache.TagDefinition definition, string format, int formatIndex ) : Match
getArguments ( Mustache.TagDefinition definition, Match match, List context ) : ArgumentCollection
getClosingTagRegex ( string tagName ) : string
getCommentTagRegex ( ) : string
getKeyRegex ( ) : string
getTagRegex ( Mustache.TagDefinition definition ) : string
getUnknownTagRegex ( ) : string
prepareRegex ( Mustache.TagDefinition definition ) : Regex

메소드 상세

Compile() 공개 메소드

Builds a text generator based on the given format.
public Compile ( string format ) : Mustache.Generator
format string The format to parse.
리턴 Mustache.Generator

FormatCompiler() 공개 메소드

Initializes a new instance of a FormatCompiler.
public FormatCompiler ( ) : System
리턴 System

RegisterTag() 공개 메소드

Registers the given tag definition with the parser.
public RegisterTag ( Mustache.TagDefinition definition, bool isTopLevel ) : void
definition Mustache.TagDefinition The tag definition to register.
isTopLevel bool Specifies whether the tag is immediately in scope.
리턴 void