public abstract class SparkTemplate extends BaseTemplate
extends
directive in your template to make this
class your template's base class. Or, derive your own class from this one with features suitable for your
application and use that for your templates' base class.Constructor and Description |
---|
SparkTemplate() |
Modifier and Type | Method and Description |
---|---|
spark.Request |
getRequest()
Access Spark's
Request object; |
spark.Response |
getResponse()
Access Spark's
Response object. |
static void |
init() |
Object |
raw(Object o)
Produce raw HTML
|
String |
toS(Object o) |
afterRender, beforeRender, getExplicitLayout, getTemplateLayout, getTemplateResourceAsStream, getTemplateText, handleException, setLayout
public static void init()
public spark.Response getResponse()
Response
object.public spark.Request getRequest()
Request
object;public String toS(Object o)
toS
in class BaseTemplate
Copyright © 2024. All rights reserved.