C# Class Nustache.Core.RenderContext

Afficher le fichier Open project: jdiamond/Nustache Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

Enter() public méthode

public Enter ( Nustache.Core.Section section ) : void
section Nustache.Core.Section
Résultat void

Exit() public méthode

public Exit ( ) : void
Résultat void

GetValue() public méthode

public GetValue ( string path ) : object
path string
Résultat object

GetValues() public méthode

public GetValues ( string path ) : IEnumerable
path string
Résultat IEnumerable

Include() public méthode

public Include ( string templateName, string indent ) : void
templateName string
indent string
Résultat void

IsTruthy() public méthode

public IsTruthy ( object value ) : bool
value object
Résultat bool

IsTruthy() public méthode

public IsTruthy ( string path ) : bool
path string
Résultat bool

Pop() public méthode

public Pop ( ) : void
Résultat void

Push() public méthode

public Push ( object data ) : void
data object
Résultat void

RenderContext() public méthode

public RenderContext ( RenderContext baseContext, TextWriter writer ) : System
baseContext RenderContext
writer System.IO.TextWriter
Résultat System

RenderContext() public méthode

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
Résultat System

Write() public méthode

public Write ( string text ) : void
text string
Résultat void

WriteLiteral() public méthode

public WriteLiteral ( string text ) : void
text string
Résultat void