A template engine that uses the Rocker library.
package |
Default |
---|
__construct()
create( $arg0 = null) : \io\vertx\jphp\ext\web\templ\rocker\RockerTemplateEngine
create()
Create a template engine using a custom extension
param $extension [string] create($extension)
string
\io\vertx\jphp\ext\web\templ\rocker\RockerTemplateEngine
the engine
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
DEFAULT_TEMPLATE_EXTENSION
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|