public abstract class PippoGroovyTemplate
extends groovy.text.markup.BaseTemplate
| Constructor and Description |
|---|
PippoGroovyTemplate(groovy.text.markup.MarkupTemplateEngine templateEngine,
Map model,
Map<String,String> modelTypes,
groovy.text.markup.TemplateConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
String |
formatTime(Object input,
String styleOrPattern) |
String |
i18n(String messageKey) |
String |
i18n(String messageKey,
Object... args) |
Object |
layout(Map model,
String templateName,
boolean inheritModel)
Imports a template and renders it using the specified model, allowing
fine grained composition of templates and layouting.
|
void |
ln() |
String |
ng(String content) |
protected Integer |
parseStyle(String style) |
String |
prettyTime(Object input) |
String |
publicAt(String path) |
void |
setup(Languages languages,
Messages messages,
Router router) |
String |
webjarsAt(String path) |
public void ln()
throws IOException
IOExceptionpublic String i18n(String messageKey) throws IOException
IOExceptionpublic String i18n(String messageKey, Object... args) throws IOException
IOExceptionpublic String ng(String content) throws IOException
IOExceptionpublic Object layout(Map model, String templateName, boolean inheritModel) throws IOException, ClassNotFoundException
layout in class groovy.text.markup.BaseTemplatemodel - model to be passed to the templatetemplateName - the name of the template to be used as a layoutinheritModel - a boolean indicating if we should inherit the parent modelIOExceptionClassNotFoundExceptionCopyright © 2018. All Rights Reserved.