C# Class NVelocity.Runtime.Directive.Literal

A very simple directive that leverages the Node.literal() to grab the literal rendition of a node. We basically grab the literal value on init(), then repeatedly use that during render().
Inheritance: Directive
Afficher le fichier Open project: rasmus-toftdahl-olesen/NVelocity

Méthodes publiques

Méthode Description
Init ( IRuntimeServices rs, IInternalContextAdapter context, INode node ) : void

Store the literal rendition of a node using the Node.literal().

Render ( IInternalContextAdapter context, TextWriter writer, INode node ) : bool

Throw the literal rendition of the block between #literal()/#end into the writer.

Method Details

Init() public méthode

Store the literal rendition of a node using the Node.literal().
public Init ( IRuntimeServices rs, IInternalContextAdapter context, INode node ) : void
rs IRuntimeServices
context IInternalContextAdapter
node INode
Résultat void

Render() public méthode

Throw the literal rendition of the block between #literal()/#end into the writer.
public Render ( IInternalContextAdapter context, TextWriter writer, INode node ) : bool
context IInternalContextAdapter
writer System.IO.TextWriter
node INode
Résultat bool