crowdstar/template

A wrapper for template engines.

1.0.0 2020-10-07 17:48 UTC

This package is auto-updated.

Last update: 2022-06-07 21:44:59 UTC


README

Build Status Latest Stable Version Latest Unstable Version License

Summary

A wrapper for template engines. The purpose of this library is to make it easier to switch between different template engines.

Installation

composer require crowdstar/template

Sample Usage

<?php
use CrowdStar\Template\Template;
use CrowdStar\Template\TemplateEngine\Mustache;

(new Template(new Mustache()))->render('Hello {{planet}}', ['planet' => 'World!']); // "Hello World!"
?>