C# Класс 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().
Наследование: Directive
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Init() публичный Метод

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
Результат void

Render() публичный Метод

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
Результат bool