Download the PHP package xp-forge/handlebars without Composer
On this page you can find all versions of the php package xp-forge/handlebars. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xp-forge/handlebars
More information about xp-forge/handlebars
Files in xp-forge/handlebars
Download xp-forge/handlebars
More information about xp-forge/handlebars
Files in xp-forge/handlebars
Vendor xp-forge
Package handlebars
Short Description Handlebars for XP Framework
License BSD-3-Clause
Homepage http://xp-framework.net/
Package handlebars
Short Description Handlebars for XP Framework
License BSD-3-Clause
Homepage http://xp-framework.net/
Please rate this library. Is it a good library?
Informations about the package handlebars
Handlebars for XP Framework
The Handlebars template language implemented for the XP Framework.
Templating
Templates can be loaded from the file system. The following loads and transforms the template src/main/handlebars.handlebars:
Helpers supported
The following helpers are built in:
The "if" block
The "unless" block
The "with" block
The "each" block
All of the above block helpers support the else
statement.
The "log" helper
To enable logging, pass either a closure or a util.log.LogCategory
instance to the engine:
Custom helpers
To add custom helpers, use withHelpers() and pass functions. The following yields Hello WORLD:
The parameters passed are the following:
- node: The current node, a
com.github.mustache.Node
instance - context: The current context, a
com.github.mustache.Context
instance - options: The resolved options passed, in the above case the string "World" (which is what name resolves to)
Futher reading
All versions of handlebars with dependencies
PHP Build Version
Package Version
Requires
xp-framework/core Version
^12.0 | ^11.0 | ^10.0
xp-framework/logging Version ^11.0 | ^10.0 | ^9.1
php Version >=7.0.0
xp-forge/mustache Version ^8.2
xp-framework/logging Version ^11.0 | ^10.0 | ^9.1
php Version >=7.0.0
xp-forge/mustache Version ^8.2
The package xp-forge/handlebars contains the following files
Loading the files please wait ....