Modifier and Type | Method and Description |
---|---|
String |
JSilver.render(Template template,
Data data) |
String |
TemplateRenderer.render(Template template,
Data data)
Same as
TemplateRenderer.render(Template,Data,Appendable) , except returns rendered template as a
String. |
void |
JSilver.render(Template template,
Data data,
Appendable output)
Renders a given template and provided data, writing to an arbitrary output.
|
void |
TemplateRenderer.render(Template template,
Data data,
Appendable output)
Same as
TemplateRenderer.render(Template,Data,Appendable,ResourceLoader) , except it uses the
ResourceLoader passed into the JSilver constructor. |
void |
JSilver.render(Template template,
Data data,
Appendable output,
ResourceLoader resourceLoader)
Renders a given template and provided data, writing to an arbitrary output.
|
void |
TemplateRenderer.render(Template template,
Data data,
Appendable output,
ResourceLoader resourceLoader)
Renders a given template and provided data, writing to an arbitrary output.
|
Modifier and Type | Method and Description |
---|---|
String |
ClearsilverRenderer.render(Template template,
Data data) |
void |
ClearsilverRenderer.render(Template template,
Data data,
Appendable output) |
void |
ClearsilverRenderer.render(Template template,
Data data,
Appendable output,
ResourceLoader resourceLoader) |
Modifier and Type | Class and Description |
---|---|
class |
BaseCompiledTemplate
Base class providing help to generated templates.
|
class |
BaseCompiledTemplate.CompiledMacro |
Modifier and Type | Method and Description |
---|---|
Template |
TemplateCompiler.createTemp(String name,
String content,
EscapeMode escapeMode) |
Template |
TemplateCompiler.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
Modifier and Type | Class and Description |
---|---|
class |
InterpretedMacro
User defined macro that will be executed by the interpreter.
|
class |
InterpretedTemplate
Template implementation that uses the interpreter to render itself.
|
Modifier and Type | Method and Description |
---|---|
Template |
InterpretedTemplateLoader.createTemp(String name,
String content,
EscapeMode escapingMode) |
Template |
InterpretedTemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
Constructor and Description |
---|
InterpretedMacro(PCommand command,
Template owningTemplate,
String macroName,
String[] argumentNames,
TemplateInterpreter templateInterpreter,
RenderingContext owningContext) |
TemplateInterpreter(Template template,
TemplateLoader templateLoader,
RenderingContext context,
FunctionExecutor functionExecutor) |
Modifier and Type | Method and Description |
---|---|
Template |
PrecompiledTemplateLoader.createTemp(String name,
String content,
EscapeMode escapeMode)
We don't cache temporary templates here so we just call delegate TemplateLoader.
|
Template |
PrecompiledTemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
Modifier and Type | Interface and Description |
---|---|
interface |
Macro
An executable macro.
|
Modifier and Type | Method and Description |
---|---|
Template |
TemplateLoader.createTemp(String name,
String content,
EscapeMode escapeMode)
Create a temporary template from content, with the provided escape mode.
|
Template |
TemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode)
Load a template from a named resource, with the provided escape mode.
|
Modifier and Type | Method and Description |
---|---|
void |
RenderingContext.pushExecutionContext(Template template)
Push a new template onto the current execution context.
|
void |
DefaultRenderingContext.pushExecutionContext(Template template) |
Copyright © 2010–2014 Google. All rights reserved.