项目作者: Crowdstar

项目描述 :
A wrapper for template engines.
高级语言: PHP
项目地址: git://github.com/Crowdstar/template.git
创建时间: 2020-10-02T18:32:33Z
项目社区:https://github.com/Crowdstar/template

开源协议:Other

下载


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

  1. composer require crowdstar/template

Sample Usage

  1. <?php
  2. use CrowdStar\Template\Template;
  3. use CrowdStar\Template\TemplateEngine\Mustache;
  4. (new Template(new Mustache()))->render('Hello {{planet}}', ['planet' => 'World!']); // "Hello World!"
  5. ?>