A handler which renders responses using a template engine and where the template name is selected from the URI path.
package |
Default |
---|
__construct()
create( $arg0, $arg1 = null, $arg2 = null) : \io\vertx\jphp\ext\web\handler\TemplateHandler
param $engine [TemplateEngine] the template engine create($engine)
Create a handler
param $engine [TemplateEngine] the template engine param $templateDirectory [string] the template directory where templates will be looked for param $contentType [string] the content type header to be used in the response create($engine, $templateDirectory, $contentType)
TemplateEngine
string
string
\io\vertx\jphp\ext\web\handler\TemplateHandler
the handler
handle( $arg0) : void
RoutingContext
setIndexTemplate( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently
DEFAULT_TEMPLATE_DIRECTORY
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_CONTENT_TYPE
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_INDEX_TEMPLATE
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|