public interface TemplateFactory
This interface always expects to take a ResourceLoader object from the caller. This helps guarantee that per-Template resourceLoaders are respected.
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2010–2015 Google. All rights reserved.