C# Класс Stubble.Core.Classes.Tokens.SectionToken

Represents a block section in a template
Наследование: ParserOutput, IRenderableToken, ISection
Показать файл Открыть проект

Открытые методы

Метод Описание
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