|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.clearsilver.jsilver.interpreter.OptimizingTemplateFactory
public class OptimizingTemplateFactory
Wraps a template factory with a series of optimization steps. Any null optimization steps are ignored.
Constructor Summary | |
---|---|
OptimizingTemplateFactory(TemplateFactory wrapped,
OptimizerProvider... optimizers)
Creates a factory from the given optimization steps that wraps another TemplateFactory. |
Method Summary | |
---|---|
TemplateSyntaxTree |
createTemp(String content,
EscapeMode escapeMode)
Create a temporary template from content. |
TemplateSyntaxTree |
find(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode)
Load a template from the source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptimizingTemplateFactory(TemplateFactory wrapped, OptimizerProvider... optimizers)
wrapped
- the template factory instance to be wrapped.optimizers
- the optimizers to apply (null optimizations are ignored).Method Detail |
---|
public TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode)
TemplateFactory
createTemp
in interface TemplateFactory
content
- e.g. "Hello <cs var:name >"public TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode)
TemplateFactory
find
in interface TemplateFactory
templateName
- e.g. some/path/to/template.csresourceLoader
- use this ResourceLoader to locate the named template file and any
included files.escapeMode
- the type of escaping to apply to the entire template.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |