Package io.micronaut.views.pebble
Class PebbleLoader
java.lang.Object
io.pebbletemplates.pebble.loader.ClasspathLoader
io.micronaut.views.pebble.PebbleLoader
- All Implemented Interfaces:
io.pebbletemplates.pebble.loader.Loader<String>
public class PebbleLoader
extends io.pebbletemplates.pebble.loader.ClasspathLoader
Loader for Pebble templates.
- Since:
- 3.1.0
- Author:
- Ecmel Ercan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCacheKey
(String templateName) boolean
resourceExists
(String templateName) Methods inherited from class io.pebbletemplates.pebble.loader.ClasspathLoader
getCharset, getPrefix, getReader, getSuffix, resolveRelativePath, setCharset, setPrefix, setSuffix
-
Constructor Details
-
PebbleLoader
- Parameters:
views
- Views Configurationpebble
- Pebble Configuration
-
-
Method Details
-
createCacheKey
- Specified by:
createCacheKey
in interfaceio.pebbletemplates.pebble.loader.Loader<String>
- Overrides:
createCacheKey
in classio.pebbletemplates.pebble.loader.ClasspathLoader
-
resourceExists
- Specified by:
resourceExists
in interfaceio.pebbletemplates.pebble.loader.Loader<String>
- Overrides:
resourceExists
in classio.pebbletemplates.pebble.loader.ClasspathLoader
-