Resolves tag references for template files.
For instance:
Hashtable tagTable = new Hashtable();
StringBuffer result = new StringBuffer();
tagTable.put("firstName", "Charlie");
tagTable.put("lastName", "Brown");
result = TagSwapper.doSwap(session, getTemplate("display.template"), tagTable);
Assuming the template file display.template
looks like this:
<B><I>Welcome [tag:fullName] [tag:lastName] !</I></B>
then the tag swapper will resolve as so:
<B><I>Welcome Charlie Brown !</I></B>
NOTE: This class is NOT part of the public
API and therefore is subject to change; use at your own
risk.
|