A template engine that uses the Rocker library.
| package |
Default |
|---|
__construct()
create() : \io\vertx\jphp\ext\web\templ\rocker\RockerTemplateEngine
isCachingEnabled() : boolean
booleanTrue 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
setExtension( $arg0) : $this
| deprecated |
|---|
string
$thisa reference to this for fluency
setMaxCacheSize( $arg0) : $this
integer
$thisa reference to this for fluency
DEFAULT_MAX_CACHE_SIZE
| var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
|---|
DEFAULT_TEMPLATE_EXTENSION
| var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
|---|