| Package | Description |
|---|---|
| net.pterodactylus.util.notify | |
| net.pterodactylus.util.template |
Light-weight template system.
|
| net.pterodactylus.util.web |
| Modifier and Type | Method and Description |
|---|---|
TemplateContext |
TemplateNotification.getTemplateContext()
Returns the template that renders this notification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TemplateNotification.render(TemplateContext templateContext,
Writer writer)
Renders this part.
|
| Modifier and Type | Method and Description |
|---|---|
TemplateContext |
TemplateContext.addAccessor(Class<?> clazz,
Accessor accessor)
Adds an accessor to this context.
|
TemplateContext |
TemplateContext.addFilter(String name,
Filter filter)
Adds a filter to this context.
|
TemplateContext |
TemplateContext.addPlugin(String name,
Plugin plugin)
Adds a plugin to this context.
|
TemplateContext |
TemplateContext.addProvider(TemplateProvider templateProvider)
Deprecated.
Use
addTemplateProvider(TemplateProvider) instead |
TemplateContext |
TemplateContext.addTemplateProvider(TemplateProvider templateProvider)
Adds a template provider to this context.
|
TemplateContext |
TemplateContextFactory.createTemplateContext()
Creates a new template context that contains the accessors, filters,
plugins, template providers, and objects set in this factory.
|
TemplateContext |
Template.getInitialContext()
Returns the initial context of this template.
|
TemplateContext |
TemplateContext.mergeContext(TemplateContext templateContext)
Merges the accessors, filters, plugins, template providers, and template
objects into this context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DeletePlugin.execute(TemplateContext templateContext,
Map<String,String> parameters)
Executes the plugin.
|
void |
Plugin.execute(TemplateContext templateContext,
Map<String,String> parameters)
Executes the plugin.
|
void |
PaginationPlugin.execute(TemplateContext templateContext,
Map<String,String> parameters)
Executes the plugin.
|
Object |
TemplateParser.Filters.filter(int line,
int column,
TemplateContext templateContext,
Object data)
Filters the given object through all filters.
|
Object |
Filter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
String |
StoreFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
ContainsFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
ModFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
CollectionSortFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
ReplaceFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
DefaultFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
PaginationFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
FormatFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
MatchFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
String |
HtmlFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
DateFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
String |
XmlFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
InsertFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
RemoveFilter.format(TemplateContext templateContext,
Object data,
Map<String,Object> parameters)
Formats the given data object.
|
Object |
ReflectionAccessor.get(TemplateContext templateContext,
Object object,
String member)
Returns the member with the given name.
|
Object |
Accessor.get(TemplateContext templateContext,
Object object,
String member)
Returns the member with the given name.
|
Object |
ListAccessor.get(TemplateContext templateContext,
Object object,
String member)
Returns the member with the given name.
|
Template |
ChainingTemplateProvider.getTemplate(TemplateContext templateContext,
String templateName)
Retrieves the template with the given name.
|
Template |
TemplateContextProvider.getTemplate(TemplateContext templateContext,
String templateName)
Retrieves the template with the given name.
|
Template |
ClassPathTemplateProvider.getTemplate(TemplateContext templateContext,
String templateName)
Retrieves the template with the given name.
|
Template |
FilesystemTemplateProvider.getTemplate(TemplateContext templateContext,
String templateName)
Retrieves the template with the given name.
|
Template |
TemplateProvider.getTemplate(TemplateContext templateContext,
String templateName)
Retrieves the template with the given name.
|
TemplateContext |
TemplateContext.mergeContext(TemplateContext templateContext)
Merges the accessors, filters, plugins, template providers, and template
objects into this context.
|
void |
Theme.render(String templateName,
TemplateContext templateContext,
Writer writer)
Renders the template with the given name using the the given template
context to the given writer.
|
void |
DefaultTheme.render(String templateName,
TemplateContext templateContext,
Writer writer)
Renders the template with the given name using the the given template
context to the given writer.
|
void |
TemplatePart.render(TemplateContext templateContext,
Writer writer)
Renders this part.
|
void |
Part.render(TemplateContext templateContext,
Writer writer)
Renders this part.
|
| Constructor and Description |
|---|
TemplateContext(TemplateContext parentContext)
Creates a new template context with the given parent context.
|
TemplateContext(TemplateContext parentContext,
boolean temporary)
Creates a new template context with the given parent context.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
TemplatePage.processTemplate(TemplateContext templateContext,
REQ request)
Allows subclasses to manipulate the template context in dependency of the
request being served before the template itself is rendered.
|
Copyright © 2026. All rights reserved.