Download the PHP package aleskafka/component-macro without Composer
On this page you can find all versions of the php package aleskafka/component-macro. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aleskafka/component-macro
More information about aleskafka/component-macro
Files in aleskafka/component-macro
Download aleskafka/component-macro
More information about aleskafka/component-macro
Files in aleskafka/component-macro
Vendor aleskafka
Package component-macro
Short Description Extends Latte with simple component model
License MIT
Package component-macro
Short Description Extends Latte with simple component model
License MIT
Please rate this library. Is it a good library?
Informations about the package component-macro
component-macro
Extends Latte with simple component model inspired by JSX for React
Installation
Use composer:
Install in configuration file to Latte Engine:
Basic example
Create Header component as latte template in
In arbitrary page template render Header component with specific arguments.
Features
For more example see tests. In short you can:
- render components in React style
- You can use variable $_html in component. It contains body rendered in parent template inside component tags
- You can expand variable into component
- You can expand defined variables into component
- You can name elements/components inside component with macro n:key="string" (keys can be dynamic) and override it inside parental component tags:
License
MIT. See full license.
All versions of component-macro with dependencies
PHP Build Version
Package Version
No informations.
The package aleskafka/component-macro contains the following files
Loading the files please wait ....