NVelocity.Runtime.Directive
Class 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(). *

Fields inherited from class NVelocity.Runtime.Directive.Directive
rsvc

Constructor Summary
Literal()
        Initializes a new instance of the Literal class.

Property Summary
string Name
int Type

Properties inherited from class NVelocity.Runtime.Directive.Directive
Column, Line

Method Summary
void init(NVelocity.Runtime.RuntimeServices rs, NVelocity.Context.InternalContextAdapter context, NVelocity.Runtime.Parser.Node.INode node)
         Store the literal rendition of a node using the Node.literal().
bool render(NVelocity.Context.InternalContextAdapter context, System.IO.TextWriter writer, NVelocity.Runtime.Parser.Node.INode node)
         Throw the literal rendition of the block between #literal()/#end into the writer.

Methods inherited from class NVelocity.Runtime.Directive.Directive
setLocation

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

Literal

public Literal()

Initializes a new instance of the Literal class.

Property Detail

Name

public string Name


Type

public int Type

Method Detail

init

public void init(NVelocity.Runtime.RuntimeServices rs,
                 NVelocity.Context.InternalContextAdapter context,
                 NVelocity.Runtime.Parser.Node.INode node)

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


render

public bool render(NVelocity.Context.InternalContextAdapter context,
                   System.IO.TextWriter writer,
                   NVelocity.Runtime.Parser.Node.INode node)

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