C# 클래스 Stubble.Core.Classes.Tokens.SectionToken

Represents a block section in a template
상속: ParserOutput, IRenderableToken, ISection
파일 보기 프로젝트 열기: StubbleOrg/Stubble

공개 메소드들

메소드 설명
Render ( Writer writer, Context context, string>.IDictionary partials, string originalTemplate ) : string

Returns the rendered result of all the child tokens of the section if the token value is truthy

SectionToken ( Tags tags ) : System.Reflection

Initializes a new instance of the SectionToken class with the given Tags

메소드 상세

Render() 공개 메소드

Returns the rendered result of all the child tokens of the section if the token value is truthy
public Render ( Writer writer, Context context, string>.IDictionary partials, string originalTemplate ) : string
writer Writer The writer to write the token to
context Context The context to discover values from
partials string>.IDictionary The partial templates available to the token
originalTemplate string The original template
리턴 string

SectionToken() 공개 메소드

Initializes a new instance of the SectionToken class with the given Tags
public SectionToken ( Tags tags ) : System.Reflection
tags Tags The tags to use for block lambda interpolation
리턴 System.Reflection