Package sunlabs.brazil.template
Class ScriptEvalTemplate
- java.lang.Object
-
- sunlabs.brazil.template.Template
-
- sunlabs.brazil.template.ScriptEvalTemplate
-
- All Implemented Interfaces:
TemplateInterface
public class ScriptEvalTemplate extends Template
Template class for performing ${...} substitutions inside javascript and style tags. This class is used by the TemplateHandlerA new attribute
eval
is defined for thescript
andstyle
tags. Ifeval
is present, any ${...} constructs are evaluated in the body of the "script" or "style".If the attribute
esc
is true, then strings of the form "\X" are replaced as perFormat
. Otherwise "\X" is treated specially only for X = $, to escape variable substitution.Both "eval" and "esc" attributes are removed from the "script" or "style" tags.
- Version:
- Author:
- Stephen Uhler
-
-
Constructor Summary
Constructors Constructor Description ScriptEvalTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
tag_script(RewriteContext hr)
void
tag_style(RewriteContext hr)
-
-
-
Method Detail
-
tag_script
public void tag_script(RewriteContext hr)
-
tag_style
public void tag_style(RewriteContext hr)
-
-