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