Support ScriptEngine#eval(String, Bindings) in ScriptTemplateView

Supporting ScriptEngine#eval(String, Bindings) when no render function
is specified allows to support use cases where script templates are
simply evaluating a script expression with an even more simplified
configuration.

This improvement also makes it possible to use script engines that
do not implement Invocable.

Issue: SPR-15115
This commit is contained in:
Sebastien Deleuze
2017-06-16 10:26:26 +02:00
parent 7e251274ee
commit d5f9ad03a7
12 changed files with 139 additions and 34 deletions

View File

@@ -0,0 +1,4 @@
// TODO Improve syntax when KT-15125 will be fixed
"""${bindings["header"]}
<p>${bindings["hello"]} ${bindings["foo"]}</p>
${bindings["footer"]}"""