albertofem / wiser
Enhanced PHP template engine
dev-master
2013-07-24 07:02 UTC
Requires
- php: >=5.3.3
- symfony/event-dispatcher: 2.1.*
- symfony/finder: 2.1.*
This package is not auto-updated.
Last update: 2024-11-17 04:45:27 UTC
README
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; ?>