Execute some JavaScript in the current context
Execute some JavaScript in the current context
the string to execute
the value returned from the JavaScript execution
Hook into LiftRules to put a JavaScript execution loanwrapper around everything and also slurp in <script> tags with the data-lift-server attribute.
You can add a JavaScript context to Lift so that you can run server-side JavaScript as part of Lift page rendering.
In Boot.scala, just do
JavaScriptContext.install()
and you get a JavaScript execution context around all HTTP requests.