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
显示文件 Open project: rasmus-toftdahl-olesen/NVelocity

Public Methods

Method 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 method

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
return void

Render() public method

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
return bool