public interface TemplateEngine extends Renderer
ModelAndView
objects.Modifier and Type | Method and Description |
---|---|
String |
apply(Context ctx,
ModelAndView modelAndView)
Render a model and view instance as String.
|
default byte[] |
render(Context ctx,
Object value)
Renderer a value into a byte array or
null if given object isn't supported it. |
String apply(Context ctx, ModelAndView modelAndView) throws Exception
ctx
- Web context.modelAndView
- Model and view.Exception
- If something goes wrong.Copyright © 2019. All rights reserved.