Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Crowdstar/template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!"
?>