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/my_view.php (your view)
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.