| Package | Description |
|---|---|
| net.pterodactylus.util.notify | |
| net.pterodactylus.util.template |
Light-weight template system.
|
| net.pterodactylus.util.web |
| Modifier and Type | Method and Description |
|---|---|
protected Template |
TemplateNotification.getTemplate()
Expose the used template to subclasses.
|
| Constructor and Description |
|---|
TemplateNotification(String id,
long creationTime,
long lastUpdatedTime,
boolean dismissable,
Template template)
Creates a new notification.
|
TemplateNotification(String id,
Template template)
Creates a new notification.
|
TemplateNotification(Template template)
Creates a new notification.
|
| Modifier and Type | Method and Description |
|---|---|
Template |
TemplateContext.getTemplate(String name)
Returns the template with the given name.
|
Template |
DefaultTheme.getTemplate(String templateName)
Returns the template 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.
|
static Template |
TemplateParser.parse(Reader input)
Parses the input of the template if it wasn’t already parsed.
|
static Template |
TemplateParser.parse(Reader input,
WhitespaceRemover whitespaceRemover)
Parses the input of the template if it wasn’t already parsed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultTheme.addTemplate(String templateName,
Template template)
Adds a template with the given name.
|
| Constructor and Description |
|---|
TemplatePage(String path,
String contentType,
TemplateContextFactory templateContextFactory,
Template template)
Creates a new template page.
|
Copyright © 2026. All rights reserved.