albertofem/wiser

Enhanced PHP template engine

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/albertofem/wiser

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

This package is not auto-updated.

Last update: 2025-10-05 08:53:52 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; ?>