Since the increasing use of MVC Framework, a new trend has surfaced, preference to Views over Templates, so many developers are using PHP templates instead of HTML templates.
We've decided to include the possibility to load view. By default RainTPL still loads HTML templates and uses template tags. To load php views, set TPL_EXT to "php" instead of "html".
Since views are just php files, the syntax of view is just PHP. Variables in view are accessible with the assigned name, as the following example:
test.php (your code)
$tpl=new RainTPL;
$tpl->assign('title','Hello');
$tpl->draw('my_view');
$tpl->assign('title','Hello');
$tpl->draw('my_view');
tpl/my_view.php (your view)
This is the title: <?php echo $title; ?>
If you decide to use views instead of templates, remember to set anyway the cache directory, it could be useful for load the static cache.

