Renders the template at the location identified by the package of the given action class and the given fragment.
Renders the template at the location identified by the package of the given action class and the given fragment.
Ex: When location = myapp.ArticleNew, fragment = form and Scalate template engine is used, by default the template path will be: src/main/scalate/myapp/_form.jade
the action class used to identify the template location
specific to the configured template engine
Renders the template at the location identified by the given action class.
Renders the template at the location identified by the given action class.
Ex: When location = myapp.SiteIndex and Scalate template engine is used, by default the template path will be: src/main/scalate/myapp/SiteIndex.jade
the action class used to identify the template location
specific to the configured template engine
Called once when Xitrum server starts.
Called once when Xitrum server starts. If necessary the template engine should allocate its resources here.
Called once when Xitrum server stops.
Called once when Xitrum server stops. If necessary the template engine should release its resources here.
Template engines should extend this trait and implement its methods. On startup, an instance of the configured template engine is created and used for every rendering request. Thus it should be thread-safe.