albertofem/wiser

Enhanced PHP template engine

dev-master 2013-07-24 07:02 UTC

This package is not auto-updated.

Last update: 2024-12-15 05:11:27 UTC


README

Build Status

Wiser is not a template engine. It aims to provide enhanced features for the PHP template engine. It's highly inspired in Savant3.

Usage

Basic usage example:

use Wiser\Wiser;

$config = array('template_path' => __DIR__ . '/views/);

$wiser = new Wiser($config);
$wiser->render('template.html.php', array('myVar' => 'test'));

In your template:

If you're using PHP >= 5.4.*

<?= $myVar; ?>

If you're using PHP <= 5.3.*

<?php echo $myVar; ?>