public String render ( String template , Map < String , Object > model ) { try { Invocable invocable = ( Invocable ) engine ; return ( String ) invocable . invokeFunction ( "render" , template , model , partials ) ; } catch ( ScriptException ex ) { throw new NashornException ( ex ) ; } catch ( NoSuchMethodException ex ) { throw new NashornException ( ex ) ; } }
Render template with given model object .