ceus-media/template-abstraction

0.3.1 2021-08-22 13:54 UTC

This package is auto-updated.

Last update: 2022-06-22 15:38:02 UTC


README

This library provides an abstraction layer for template engines.

Package version Monthly downloads PHP version PHPStan level License Release date Commit date

Goals

Goals of this abstraction layer:

  1. to be able to replace the currently used template engine within your project
  2. to be able to use several template engines side by side within your project
  3. allow several developers of your project to use the template engine they like
  4. improve performance of your project by using different template engines for different tasks
  5. avoid/ignore template engine file extensions (like .pug or .haml)
  6. autodetect which template engine to use

To reach these goals, this library provides a clean interface to render templates using several available template engines in the background.

Template Engines

Currently supported template engines are:

Upcoming versions will also support:

  • Pug / Jade

Todos

Add Template Engines

Add phug

phug = pug-php = ex-jade

Add tale-pug

tale-pug = ex-tale-jade = ex-jade