Package | Description |
---|---|
sirius.web.templates |
Provides access to various template engines which generate HTML, text or PDF files.
|
Modifier and Type | Method and Description |
---|---|
Generator |
Generator.applyContext(sirius.kernel.commons.Context ctx)
Applies the context to the generator.
|
Generator |
Generator.direct(String templateCode,
String handlerType)
Sets the template code to be used directly as string.
|
Generator |
Generator.encoding(String encoding)
Sets the output encoding which is used to generate the output files.
|
Generator |
Templates.generator()
Creates a new generator which can be used to generate a template based output.
|
Generator |
Generator.handler(String handlerType)
Specifies which
ContentHandler is used to generate the content. |
Generator |
Generator.put(String key,
Object value)
Adds a variable with the given name (key) and value to the internal context.
|
Generator |
Generator.useTemplate(String templateName)
Determines which template file should be used.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JavaScriptBasedContentHandler.execute(Generator generator)
Executes the template as JavaScript code
|
boolean |
TagliatellePDFContentHandler.generate(Generator generator,
OutputStream out) |
boolean |
TagliatelleContentHandler.generate(Generator generator,
OutputStream out) |
boolean |
JavaScriptContentHandler.generate(Generator generator,
OutputStream out) |
boolean |
ContentHandler.generate(Generator generator,
OutputStream out)
Generates the appropriate output if the settings of the generator match.
|
boolean |
JsXMLContentHandler.generate(Generator generator,
OutputStream out) |
protected Template |
TagliatelleContentHandler.getTemplate(Generator generator) |
Copyright © 2018. All rights reserved.