C# 클래스 NVelocity.Runtime.Directive.Parse

Pluggable directive that handles the #parse() statement in VTL. Notes: ----- 1) The parsed source material can only come from somewhere in the TemplateRoot tree for security reasons. There is no way around this. If you want to include content from elsewhere on your disk, use a link from somwhere under Template Root to that content. 2) There is a limited parse depth. It is set as a property "parse_directive.maxdepth = 10" for example. There is a 20 iteration safety in the event that the parameter isn't set.
상속: Directive
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity

공개 메소드들

메소드 설명
Render ( IInternalContextAdapter context, TextWriter writer, INode node ) : bool

iterates through the argument list and renders every argument that is appropriate. Any non appropriate arguments are logged, but render() continues.

비공개 메소드들

메소드 설명
AssertArgument ( INode node ) : bool
AssertNodeHasValue ( INode node, IInternalContextAdapter context, Object &value ) : bool
AssertTemplateStack ( IInternalContextAdapter context ) : bool

See if we have exceeded the configured depth. If it isn't configured, put a stop at 20 just in case.

GetTemplate ( String arg, String encoding, IInternalContextAdapter context ) : Template
RenderTemplate ( Template template, String arg, TextWriter writer, IInternalContextAdapter context ) : bool

메소드 상세

Render() 공개 메소드

iterates through the argument list and renders every argument that is appropriate. Any non appropriate arguments are logged, but render() continues.
public Render ( IInternalContextAdapter context, TextWriter writer, INode node ) : bool
context IInternalContextAdapter
writer System.IO.TextWriter
node INode
리턴 bool