org.apache.velocity.runtime.directive
Class Literal
- Cloneable, DirectiveConstants
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().
Version:
- Jason van Zyl
literalText
(package private) String literalText
getName
public String getName()
Return name of this directive.
- getName in interface Directive
getType
public int getType()
Return type of this directive.
- getType in interface Directive
render
public boolean render(InternalContextAdapter context,
Writer writer,
Node node)
throws IOException
Throw the literal rendition of the block between
#literal()/#end into the writer.
- render in interface Directive
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.