public override bool Render(IInternalContextAdapter context, TextWriter writer) { // normal processing if (directive == null) { writer.Write(directiveName); } else { directive.Render(context, writer, this); } return(true); }
/// <seealso cref="NVelocity.Runtime.Paser.Node.SimpleNode.render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer)"> /// </seealso> public override bool Render(IInternalContextAdapter context, System.IO.TextWriter writer) { /* * normal processing */ if (isDirective) { directive.Render(context, writer, this); } else { if (context.AllowRendering) { writer.Write("#"); writer.Write(directiveName); } } return(true); }