public static interface View.Engine extends Renderer
View
. Multiples view engine are supported too. In order to support multiples view engine, a view engine is allowed to throw a FileNotFoundException
when a template can't be resolved it. This gives the chance to the next view resolver to load the template.
Renderer.Context
Modifier and Type | Method and Description |
---|---|
default void |
render(Object value, Renderer.Context ctx)
Render the given value and write the response (if possible).
|
void |
render(View viewable, Renderer.Context ctx)
Render a view or throw a FileNotFoundException when template can't be resolved it..
|
default void render(Object value, Renderer.Context ctx) throws Exception
Renderer
void render(View viewable, Renderer.Context ctx) throws FileNotFoundException, Exception
FileNotFoundException
when template can't be resolved it..
viewable
- View to render.
ctx
- A rendering context.
FileNotFoundException
- If template can't be resolved.
Exception
- If view rendering fails.
Copyright © 2019. All rights reserved.