程序包 cn.taketoday.web.view.script
@NonNullApi
@NonNullFields
package cn.taketoday.web.view.script
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g. using JavaScript via Nashorn on JDK 8.
Contains a View implementation for scripted templates.
-
类说明Context passed to
ScriptTemplateViewrender function in order to make the application context, the locale, the template loader and the url available on scripting side.Interface to be implemented by objects that configure and manage a JSR-223ScriptEnginefor automatic lookup in a web environment.An implementation of Framework Web'sScriptTemplateConfigfor creating aScriptEnginefor use in a web application.AnAbstractUrlBasedViewsubclass designed to run any template library based on a JSR-223 script engine.Key class for theenginesHolder ThreadLocal.Convenience subclass ofUrlBasedViewResolverthat supportsScriptTemplateViewand custom subclasses of it.