A template engine that uses the Thymeleaf library.
package |
Default |
---|
__construct()
create( $arg0) : \io\vertx\jphp\ext\web\templ\thymeleaf\ThymeleafTemplateEngine
Vertx
\io\vertx\jphp\ext\web\templ\thymeleaf\ThymeleafTemplateEngine
the engine
isCachingEnabled() : boolean
boolean
True if template files are cached; otherwise, false.
render( $arg0, $arg1, $arg2) : void
Some engines support localization, for these engines, there is a predefined key "lang" to specify the language to be used in the localization, the format should follow the standard locale formats e.g.: "en-gb", "pt-br", "en".
array
string
callable
setMode( $arg0) : $this
string
$this
a reference to this for fluency
DEFAULT_TEMPLATE_MODE
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|