|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjste.template.Template
public class Template
Expand a template containing embedded Javascript code.
| Constructor Summary | |
|---|---|
Template(java.io.Reader dataReader)
Create a template from the contents of the given reader. |
|
Template(java.io.Reader dataReader,
java.lang.String templateName)
Create a template from the given reader, using the second parameter as template name. |
|
Template(java.lang.String templateString)
Create a template from the given string. |
|
Template(java.lang.String templateString,
java.lang.String templateName)
Create a template from the given string, using the second parameter as template name. |
|
| Method Summary | |
|---|---|
protected void |
_doExpand(java.lang.Object context,
DocumentWrapper docWrapper)
|
void |
expand(java.lang.Object context,
java.io.Writer output)
Expand this template, writing the results into the output. |
protected DocumentWrapper |
getOutputWrapper(java.lang.Object context,
java.io.Writer output)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Template(java.lang.String templateString)
public Template(java.io.Reader dataReader)
throws java.lang.Exception
java.lang.Exception
public Template(java.io.Reader dataReader,
java.lang.String templateName)
throws java.lang.Exception
java.lang.Exception
public Template(java.lang.String templateString,
java.lang.String templateName)
| Method Detail |
|---|
public void expand(java.lang.Object context,
java.io.Writer output)
throws java.lang.Exception
context - the Java object that will be exposed as context in the Javascript codeoutput - the Writer into which results will be written
java.lang.Exception - if syntax or execution errors are encountered
protected void _doExpand(java.lang.Object context,
DocumentWrapper docWrapper)
throws java.lang.Exception
java.lang.Exception
protected DocumentWrapper getOutputWrapper(java.lang.Object context,
java.io.Writer output)
throws java.lang.Exception
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||