Modifier and Type | Method and Description |
---|---|
ResourceLoader |
JSilver.getResourceLoader()
Gets underlying ResourceLoader so you can access arbitrary files using the same mechanism as
JSilver.
|
Modifier and Type | Method and Description |
---|---|
void |
JSilver.render(String templateName,
Data data,
Appendable output,
ResourceLoader resourceLoader)
Renders a given template and provided data, writing to an arbitrary output.
|
void |
TemplateRenderer.render(String templateName,
Data data,
Appendable output,
ResourceLoader resourceLoader)
Renders a given template and provided data, writing to an arbitrary output.
|
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.
|
Constructor and Description |
---|
JSilver(ResourceLoader defaultResourceLoader)
Creates a JSilver instance with default options.
|
JSilver(ResourceLoader defaultResourceLoader,
boolean cacheTemplates)
Deprecated.
|
JSilver(ResourceLoader defaultResourceLoader,
JSilverOptions options) |
Modifier and Type | Class and Description |
---|---|
class |
ResourceLoaderAdaptor
Wrap a CSFileLoader with a ResourceLoader
|
Modifier and Type | Method and Description |
---|---|
void |
ClearsilverRenderer.render(String templateName,
Data data,
Appendable output,
ResourceLoader resourceLoader) |
void |
ClearsilverRenderer.render(Template template,
Data data,
Appendable output,
ResourceLoader resourceLoader) |
Constructor and Description |
---|
ClearsilverRenderer(ClearsilverFactory factory,
ResourceLoader resourceLoader)
Creates an implementation using the provided ClearSilver factory and JSilver resource loader.
|
ClearsilverRenderer(ResourceLoader resourceLoader)
Creates a JSilver implementation using the JNI ClearSilver factory and provided JSilver
resource loader.
|
Modifier and Type | Method and Description |
---|---|
RenderingContext |
BaseCompiledTemplate.createRenderingContext(Data data,
Appendable out,
ResourceLoader resourceLoader) |
RenderingContext |
BaseCompiledTemplate.CompiledMacro.createRenderingContext(Data data,
Appendable out,
ResourceLoader resourceLoader) |
Template |
TemplateCompiler.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
void |
BaseCompiledTemplate.render(Data data,
Appendable out,
ResourceLoader resourceLoader) |
void |
BaseCompiledTemplate.CompiledMacro.render(Data data,
Appendable out,
ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
Data |
HDFDataFactory.loadData(String dataFileName,
ResourceLoader resourceLoader) |
Data |
DataFactory.loadData(String dataFileName,
ResourceLoader resourceLoader)
Loads data in Hierarchical Data Format (HDF) into a new Data object.
|
void |
HDFDataFactory.loadData(String dataFileName,
ResourceLoader resourceLoader,
Data output) |
void |
DataFactory.loadData(String dataFileName,
ResourceLoader resourceLoader,
Data output)
Loads data in Hierarchical Data Format (HDF) into an existing Data object.
|
void |
NewHdfParser.parse(Reader reader,
Data output,
Parser.ErrorHandler errorHandler,
ResourceLoader resourceLoader,
String dataFileName,
boolean ignoreAttributes) |
void |
DefaultHdfParser.parse(Reader reader,
Data output,
Parser.ErrorHandler errorHandler,
ResourceLoader resourceLoader,
String dataFileName,
boolean ignoreAttributes) |
void |
Parser.parse(Reader reader,
Data output,
Parser.ErrorHandler errorHandler,
ResourceLoader resourceLoader,
String dataFileName,
boolean ignoreAttributes)
Reads in a stream of characters and parses data from it, putting it into the given Data object.
|
Modifier and Type | Method and Description |
---|---|
RenderingContext |
InterpretedTemplate.createRenderingContext(Data data,
Appendable out,
ResourceLoader resourceLoader) |
RenderingContext |
InterpretedMacro.createRenderingContext(Data data,
Appendable out,
ResourceLoader resourceLoader) |
TemplateSyntaxTree |
LoadingTemplateFactory.find(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
TemplateSyntaxTree |
TemplateFactory.find(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode)
Load a template from the source.
|
TemplateSyntaxTree |
OptimizingTemplateFactory.find(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
Template |
InterpretedTemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
void |
InterpretedTemplate.render(Data data,
Appendable out,
ResourceLoader resourceLoader) |
void |
InterpretedMacro.render(Data data,
Appendable out,
ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
Template |
PrecompiledTemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode) |
Modifier and Type | Class and Description |
---|---|
class |
BaseResourceLoader
Implementations of ResourceLoader should extend this class rather than directly implement the
ResourceLoader interface - this allows changes to be made to the ResourceLoader interface whilst
retaining backwards compatibility with existing implementations.
|
class |
BufferedResourceLoader
Base class for ResourceLoader implementations that require the Reader to be buffered (i.e.
|
class |
ClassLoaderResourceLoader
Loads resources from classpath.
|
class |
ClassResourceLoader
Loads resources from classpath, alongside a given class.
|
class |
CompositeResourceLoader
ResourceLoader composed of other ResourceLoaders.
|
class |
FileSystemResourceLoader
Loads resources from a directory.
|
class |
InMemoryResourceLoader
ResourceLoader that pulls all items from memory.
|
Modifier and Type | Method and Description |
---|---|
void |
CompositeResourceLoader.add(ResourceLoader loader) |
Constructor and Description |
---|
CompositeResourceLoader(ResourceLoader... loaders) |
Constructor and Description |
---|
CompositeResourceLoader(Iterable<ResourceLoader> loaders) |
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
DefaultRenderingContext.getResourceLoader() |
ResourceLoader |
RenderingContext.getResourceLoader()
Returns the ResourceLoader object to use to fetch files needed to render the current template.
|
Modifier and Type | Method and Description |
---|---|
RenderingContext |
Template.createRenderingContext(Data data,
Appendable out,
ResourceLoader resourceLoader)
Create a new RenderingContext.
|
Template |
TemplateLoader.load(String templateName,
ResourceLoader resourceLoader,
EscapeMode escapeMode)
Load a template from a named resource, with the provided escape mode.
|
void |
Template.render(Data data,
Appendable out,
ResourceLoader resourceLoader)
Render the template.
|
Constructor and Description |
---|
DefaultRenderingContext(DataContext dataContext,
ResourceLoader resourceLoader,
Appendable out,
FunctionExecutor globalFunctionExecutor,
AutoEscapeOptions autoEscapeOptions) |
Copyright © 2010-2014 Google. All Rights Reserved.