ceus-media/template-engine

0.5.1 2023-11-03 03:47 UTC

This package is auto-updated.

Last update: 2024-12-03 06:22:20 UTC


README

A simple template engine for PHP.

Branch Release PHP version PHPStan level Total downloads Package version License

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 and Inclusion plugin
    • loops are done by assigning sub templates on lists
  • filters - apply filters before and after
  • plugins - functionality is extendable by plugins
    • includes - include nested templates
    • comments - enable developer comments outside production
    • optional - ...