PHPackages                             stuartwakefield/templating - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. stuartwakefield/templating

ActiveLibrary[Templating &amp; Views](/categories/templating)

stuartwakefield/templating
==========================

No-frills templating

v0.1.1-alpha(11y ago)041MITPHPPHP &gt;=5.3.0

Since Mar 2Pushed 11y ago1 watchersCompare

[ Source](https://github.com/stuartwakefield/templating)[ Packagist](https://packagist.org/packages/stuartwakefield/templating)[ Docs](http://templating.stuartw.io)[ RSS](/packages/stuartwakefield-templating/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Templating
==========

[](#templating)

[![Build status](https://camo.githubusercontent.com/169af34bb53a29778a115b4b22776d66a555e5e442f09c577c87ee7c545c4bee/68747470733a2f2f7472617669732d63692e6f72672f73747561727477616b656669656c642f74656d706c6174696e672e737667)](https://travis-ci.org/stuartwakefield/templating)

Requires PHP 5.3+

A super lightweight templating system that makes PHP templating awesome.

Basic usage
-----------

[](#basic-usage)

Starting with a really basic application which has the following layout:

```
├── templates
│   └── greeting.phtml
├── composer.json
└── index.php

```

The composer.json file has `stuartwakefield/templating` in the the require map:

```
{
	"require": {
		"stuartwakefield/templating": "0.1.0a"
	}
}
```

The template file `templates/greeting.phtml` has the following content:

```
Hey there, !
```

The `index.php` script:

```
