Download the PHP package getolympus/olympus-hera-renderer without Composer
On this page you can find all versions of the php package getolympus/olympus-hera-renderer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download getolympus/olympus-hera-renderer
More information about getolympus/olympus-hera-renderer
Files in getolympus/olympus-hera-renderer
Download getolympus/olympus-hera-renderer
More information about getolympus/olympus-hera-renderer
Files in getolympus/olympus-hera-renderer
Vendor getolympus
Package olympus-hera-renderer
Short Description Olympus Hera is a bundle used to render all components views through the TWIG template engine.
License MIT
Homepage https://github.com/GetOlympus/Hera-Renderer
Package olympus-hera-renderer
Short Description Olympus Hera is a bundle used to render all components views through the TWIG template engine.
License MIT
Homepage https://github.com/GetOlympus/Hera-Renderer
Please rate this library. Is it a good library?
Informations about the package olympus-hera-renderer
Olympus Hera Renderer
Olympus Hera Renderer is a bundle used to render all components views through the TWIG template engine.
Example
You can easily use the Hera
renderer to display TWIG template:
Initialization
The Hera
component needs to be initialized by this way:
Variable | Type | Default value if not set | Details |
---|---|---|---|
context |
String | mandatory | Used by the TWIG template engine to retrieve wanted template |
template |
String | mandatory | TWIG template to load |
vars |
Array | mandatory | List of vars used in the TWIG loaded template |
assets |
Array | [] |
List of assets files to load to render template |
usecache |
Boolean | false |
Define wether to use or not TWIG engine cache system |
Customization
If you need to add your custom TWIG functions, you can use the ol_hera_render_functions
action hook:
Release History
See CHANGELOG.md for all details.
Contributing
- Fork it (https://github.com/GetOlympus/Hera-Renderer/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Built with ♥ by Achraf Chouk ~ (c) since a long time.
All versions of olympus-hera-renderer with dependencies
PHP Build Version
Package Version
The package getolympus/olympus-hera-renderer contains the following files
Loading the files please wait ....