sunlabs.brazil.template
Class ScriptEvalTemplate

java.lang.Object
  extended by sunlabs.brazil.template.Template
      extended by sunlabs.brazil.template.ScriptEvalTemplate (view source)
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 TemplateHandler

A new attribute eval is defined for the script and style tags. If eval 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 per Format. 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.


Field Summary
 
Fields inherited from class sunlabs.brazil.template.Template
debug
 
Constructor Summary
ScriptEvalTemplate()
           
 
Method Summary
 void tag_script(RewriteContext hr)
           
 void tag_style(RewriteContext hr)
           
 
Methods inherited from class sunlabs.brazil.template.Template
done, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptEvalTemplate

public ScriptEvalTemplate()
Method Detail

tag_script

public void tag_script(RewriteContext hr)

tag_style

public void tag_style(RewriteContext hr)

Version Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.