@Produces(value="text/html") @Requires(property="micronaut.views.freemarker.enabled",notEquals="false") @Requires(classes=freemarker.template.Configuration.class) @Singleton public class FreemarkerViewsRenderer extends java.lang.Object implements ViewsRenderer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
extension |
protected FreemarkerViewsRendererConfigurationProperties |
freemarkerMicronautConfiguration |
protected ViewsConfiguration |
viewsConfiguration |
EXTENSION_SEPARATOR, FILE_SEPARATOR
Modifier and Type | Method and Description |
---|---|
boolean |
exists(java.lang.String view) |
io.micronaut.core.io.Writable |
render(java.lang.String viewName,
java.lang.Object data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
modelOf, normalizeFile, normalizeFolder, render
protected final ViewsConfiguration viewsConfiguration
protected final FreemarkerViewsRendererConfigurationProperties freemarkerMicronautConfiguration
protected final java.lang.String extension
@Nonnull public io.micronaut.core.io.Writable render(@Nonnull java.lang.String viewName, @Nullable java.lang.Object data)
render
in interface ViewsRenderer
viewName
- view name to be renderdata
- response body to render it with a viewpublic boolean exists(@Nonnull java.lang.String view)
exists
in interface ViewsRenderer
view
- view name to be render