C# Class Nustache.Core.RenderContext

显示文件 Open project: jdiamond/Nustache Class Usage Examples

Public Methods

Method Description
Enter ( Nustache.Core.Section section ) : void
Exit ( ) : void
GetValue ( string path ) : object
GetValues ( string path ) : IEnumerable
Include ( string templateName, string indent ) : void
IsTruthy ( object value ) : bool
IsTruthy ( string path ) : bool
Pop ( ) : void
Push ( object data ) : void
RenderContext ( RenderContext baseContext, TextWriter writer ) : System
RenderContext ( Nustache.Core.Section section, object data, TextWriter writer, TemplateLocator templateLocator, RenderContextBehaviour renderContextBehaviour = null ) : System
Write ( string text ) : void
WriteLiteral ( string text ) : void

Private Methods

Method Description
GetTemplateDefinition ( string name ) : Nustache.Core.TemplateDefinition
GetValueFromPath ( object data, string path, bool &partialMatch ) : object

Method Details

Enter() public method

public Enter ( Nustache.Core.Section section ) : void
section Nustache.Core.Section
return void

Exit() public method

public Exit ( ) : void
return void

GetValue() public method

public GetValue ( string path ) : object
path string
return object

GetValues() public method

public GetValues ( string path ) : IEnumerable
path string
return IEnumerable

Include() public method

public Include ( string templateName, string indent ) : void
templateName string
indent string
return void

IsTruthy() public method

public IsTruthy ( object value ) : bool
value object
return bool

IsTruthy() public method

public IsTruthy ( string path ) : bool
path string
return bool

Pop() public method

public Pop ( ) : void
return void

Push() public method

public Push ( object data ) : void
data object
return void

RenderContext() public method

public RenderContext ( RenderContext baseContext, TextWriter writer ) : System
baseContext RenderContext
writer System.IO.TextWriter
return System

RenderContext() public method

public RenderContext ( Nustache.Core.Section section, object data, TextWriter writer, TemplateLocator templateLocator, RenderContextBehaviour renderContextBehaviour = null ) : System
section Nustache.Core.Section
data object
writer System.IO.TextWriter
templateLocator TemplateLocator
renderContextBehaviour RenderContextBehaviour
return System

Write() public method

public Write ( string text ) : void
text string
return void

WriteLiteral() public method

public WriteLiteral ( string text ) : void
text string
return void