Add param to params in the request scope.
Default charset.
Default charset.
Creates TemplateEngine instance for Skinny app.
Creates TemplateEngine instance for Skinny app.
configuration
TemplateEngine instance
Returns current locale for this request.
Returns current locale for this request.
current locale
Overrides to make the template path simpler.
Overrides to make the template path simpler.
paths
Generates a sample page for absent page.
Generates a sample page for absent page.
Halts with body which responds to the specified format.
Halts with body which responds to the specified format.
response type
http status
format (HTML,JSON,XML...)
body if possible
JSON format support implicitly.
JSON format support implicitly.
Renders body with template.
Renders body with template.
path name
format (HTML,JSON,XML...)
body
Renders body which responds to the specified format (JSON, XML) if possible.
Renders body which responds to the specified format (JSON, XML) if possible.
entity
format (HTML,JSON,XML...)
body if possible
Renders body with template.
Renders body with template.
path name
format (HTML,JSON,XML...)
true/false
Fetches value from request scope.
Fetches value from request scope.
type
key
value if exists
Set attributes to request scope.
Set attributes to request scope.
collection of key and value.
self
Set attribute to request scope.
Set attribute to request scope.
key and value
self
Returns whole request scope attributes.
Returns whole request scope attributes.
whole attributes
Scalate extension name.
Scalate extension name. If you'd like to use another one, override this attribute.
Session key to store current locale string.
Set attributes to request scope.
Set attributes to request scope.
Set attribute to request scope.
Set attribute to request scope.
Set params which is generated from a model object using Java reflection APIs.
Set params which is generated from a model object using Java reflection APIs.
model instance
Set current locale.
Set {{skinny.
Set {{skinny.I18n}} object for the current request to request scope.
current locale
self
Set params to request scope.
Set params to request scope.
Set params to request scope.
Set params to request scope.
Predicates the template path is available.
Predicates the template path is available.
path name
format (HTML,JSON,XML...)
true/false
Returns the actual template path for the name.
Returns the actual template path for the name.
path name
format (HTML,JSON,XML...)
actual path
(Since version 2.1.0) Do not invoke directly. Use withRequest
to change the binding, or request to get the value
(Since version 2.1.0) Do not invoke directly. Use withResponse
to change the binding, or response
to get the value
(Since version 2.1.0) Use servletContext instead
(Since version 2.0.0) not idiomatic Scalate; consider layoutTemplate instead
(Since version 2.1.0) Use status_=(Int) instead
Scalate implementation of TemplateEngineSupport.
This is basically same as Scalatra's Scalate support, but the convention of template file path is inspired by Ruby on Rails.
render("/members/index")
The above code expects "src/main/webapp/WEB-INF/views/members/index.html.ssp" by default.
If you need to use scaml instead,
And then, Skinny expects "src/main/webapp/WEB-INF/views/members/index.html.scaml"