|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateFactory
Responsible for creating/retrieving an AST tree for a template with a given name.
This interface always expects to take a ResourceLoader object from the caller. This helps guarantee that per-Template resourceLoaders are respected.
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. |
Method Detail |
---|
TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode)
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.TemplateSyntaxTree createTemp(String content, EscapeMode escapeMode)
content
- e.g. "Hello <cs var:name >"escapeMode
- 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 |