|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.newmedialab.ldpath.template.engine.TemplateEngine<Node>
public class TemplateEngine<Node>
Add file description here!
Author: Sebastian Schaffert
| Constructor Summary | |
|---|---|
TemplateEngine(RDFBackend<Node> backend)
|
|
| Method Summary | |
|---|---|
void |
processFileTemplate(Node context,
String templateName,
Map initialEnv,
Writer out)
Process the template with the given name forn the given context node and write the result to the given output writer. |
void |
processFileTemplate(Node context,
String templateName,
Writer out)
Process the template with the given name forn the given context node and write the result to the given output writer. |
void |
setClassForTemplateLoading(Class clazz,
String pathPrefix)
|
void |
setDirectoryForTemplateLoading(File dir)
|
void |
setServletContextForTemplateLoading(Object sctxt,
String path)
|
void |
setTemplateLoader(freemarker.cache.TemplateLoader loader)
Allow setting a different template loader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateEngine(RDFBackend<Node> backend)
| Method Detail |
|---|
public void setTemplateLoader(freemarker.cache.TemplateLoader loader)
loader -
public void setDirectoryForTemplateLoading(File dir)
throws IOException
IOException
public void setServletContextForTemplateLoading(Object sctxt,
String path)
public void setClassForTemplateLoading(Class clazz,
String pathPrefix)
public void processFileTemplate(Node context,
String templateName,
Writer out)
throws IOException,
freemarker.template.TemplateException
context - the initial context node to apply this template totemplateName - the name of the templateout - where to write the results
IOException
freemarker.template.TemplateException
public void processFileTemplate(Node context,
String templateName,
Map initialEnv,
Writer out)
throws IOException,
freemarker.template.TemplateException
context - the initial context node to apply this template totemplateName - the name of the templateinitialEnv - an initial root environment for processing the templateout - where to write the results
IOException
freemarker.template.TemplateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||