Package | Description |
---|---|
sirius.tagliatelle | |
sirius.tagliatelle.compiler | |
sirius.tagliatelle.emitter | |
sirius.tagliatelle.expression | |
sirius.tagliatelle.macros | |
sirius.tagliatelle.rendering | |
sirius.tagliatelle.tags | |
sirius.web.http |
Built-in HTTP server based on netty.
|
sirius.web.templates |
Provides access to various template engines which generate HTML, text or PDF files.
|
Modifier and Type | Method and Description |
---|---|
List<Template> |
Tagliatelle.getCompiledTemplates()
Provides a list of all currently compiled templates.
|
Optional<Template> |
Tagliatelle.resolve(String path)
|
Optional<Template> |
Tagliatelle.resolve(String path,
CompilationContext parentContext)
|
Modifier and Type | Method and Description |
---|---|
Template |
CompileException.getTemplate()
Returns the template for which the compilation failed.
|
Template |
CompilationContext.getTemplate()
Returns the template being compiled.
|
Modifier and Type | Method and Description |
---|---|
Optional<Template> |
CompilationContext.resolveTemplate(parsii.tokenizer.Position position,
String name)
Resolves the given name into a template.
|
Modifier and Type | Method and Description |
---|---|
static CompileException |
CompileException.create(Template template,
List<CompileError> errors)
Creates a new exception based on the list of errors.
|
Emitter |
CompilationContext.inlineTemplate(parsii.tokenizer.Position startOfTag,
Template template,
Function<String,Expression> arguments,
Function<String,Emitter> blocks)
Inlines the requested template into the current one.
|
Emitter |
CompilationContext.invokeTemplate(parsii.tokenizer.Position position,
Template template,
Function<String,Expression> arguments,
Map<String,Emitter> blocks)
Generates an emitter which invokes the given template at runtime.
|
Constructor and Description |
---|
CompilationContext(Template template,
CompilationContext parent)
Creates a new context for the given template and parent context.
|
Modifier and Type | Field and Description |
---|---|
protected Template |
InlineTemplateEmitter.template |
Constructor and Description |
---|
InlineTemplateEmitter(parsii.tokenizer.Position startOfBlock,
Template template,
Emitter body)
Creates a new instance at the given position, which references the given template and wraps the given body.
|
Modifier and Type | Method and Description |
---|---|
Expression |
MacroCall.dereference(Template template,
Function<String,Emitter> blocks)
Transforms all macros that access blocks of the
LocalRenderContext into alternative expressions. |
Modifier and Type | Method and Description |
---|---|
Expression |
RenderBlockMacro.dereference(Template template,
Function<String,Emitter> blocks,
Expression[] args) |
default Expression |
Macro.dereference(Template template,
Function<String,Emitter> blocks,
Expression[] args)
Replaces the call to this macro by an alternative expression if blocks are to be inlined.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,Template> |
GlobalRenderContext.templateCache |
Modifier and Type | Method and Description |
---|---|
Optional<Template> |
LocalRenderContext.resolve(String templateName)
Resolves the given template.
|
protected Optional<Template> |
GlobalRenderContext.resolve(String templateName)
Resolves the given template.
|
Modifier and Type | Method and Description |
---|---|
LocalRenderContext |
LocalRenderContext.createChildContext(Template template)
Creates a child context to invoke the given template.
|
LocalRenderContext |
GlobalRenderContext.createContext(Template template)
Creates a local render context to invoke the given template.
|
LocalRenderContext |
LocalRenderContext.createInlineContext(Template template)
Creates an inline context which uses the same locals as this context but references another template.
|
Constructor and Description |
---|
LocalRenderContext(Template template,
GlobalRenderContext globalContext,
sirius.tagliatelle.rendering.StackAllocator.View locals)
Creates a new context.
|
Modifier and Type | Method and Description |
---|---|
protected Template |
InvokeTag.resolveTemplate(String templateName) |
Modifier and Type | Method and Description |
---|---|
protected void |
InvokeTag.invokeTemplate(Template template,
CompositeEmitter targetBlock) |
Constructor and Description |
---|
TaglibTagHandler(Template template)
Creates a new handler for the given template.
|
Modifier and Type | Method and Description |
---|---|
void |
Response.template(HttpResponseStatus status,
Template template,
Object... params)
Renders the given Rythm template and sends the output as response.
|
Modifier and Type | Method and Description |
---|---|
protected Template |
TagliatelleContentHandler.getTemplate(Generator generator) |
Copyright © 2018. All rights reserved.