C# Class Stubble.Core.Classes.Tokens.InvertedToken

Represents an inverted section which is only rendered if the value is not truthy
Inheritance: InterpolationToken, IRenderableToken, ISection
显示文件 Open project: StubbleOrg/Stubble

Public Methods

Method Description
Render ( Writer writer, Context context, string>.IDictionary partials, string originalTemplate ) : string

Renders a tokens representation if the value (or interpolated value result) is truthy

Method Details

Render() public method

Renders a tokens representation if the value (or interpolated value result) 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
return string