public interface ViewsRenderer
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION_SEPARATOR
The extension separator.
|
static String |
FILE_SEPARATOR
Deprecated.
Use
File.separator directly |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String viewName) |
default String |
normalizeFile(String path,
String extension)
Returns a path that is converted to unix style file separators
and never starts with a "\".
|
default String |
normalizeFolder(String path)
Returns a path with unix style folder
separators that starts and ends with a "\".
|
Writable |
render(String viewName,
Object data) |
@Deprecated static final String FILE_SEPARATOR
File.separator directlystatic final String EXTENSION_SEPARATOR
@Nonnull Writable render(@Nonnull String viewName, @Nullable Object data)
viewName - view name to be renderdata - response body to render it with a viewboolean exists(@Nonnull String viewName)
viewName - view name to be render@Nonnull default String normalizeFolder(@Nullable String path)
path - The path to normalizeFile@Nonnull default String normalizeFile(@Nonnull String path, String extension)
path - The path to normalizeFileextension - The file extension