ceus-media / template-engine
0.5.1
2023-11-03 03:47 UTC
Requires
- php: ^8.1
- ceus-media/common: ^1.0 | 1.0.x-dev
- psr/simple-cache: ^3.0
Requires (Dev)
- php-parallel-lint/php-parallel-lint: ^1.3 | dev-master
- phpstan/phpstan: ^1
- phpstan/phpstan-strict-rules: ^1
- phpunit/phpunit: ^9.5 | ^10
- rector/rector: *
Suggests
README
A simple template engine for PHP.
Versions
Until version 0.4.1
, support for PHP 7.4+ and CeusMedia::Common 0.9+.
This version 0.5.1
, support for PHP 8.1+ and CeusMedia::Common 1.0+.
Facts
- logic-less - no conditions or loop
- conditions are done by
Optional
andInclusion
plugin - loops are done by assigning sub templates on lists
- conditions are done by
- filters - apply filters before and after
- plugins - functionality is extendable by plugins
- includes - include nested templates
- comments - enable developer comments outside production
- optional - ...