News 
18 August 2010

RainTPL 1.9

Corrected bug in {include} tag of the 1.9 beta version,
Important updates:

  • Added static property raintpl::$base_dir, which set the base directory of all image src attribute,  background attribute and link href attribute.
    You can set $base_dir when you instantiate RainTpl object:

    $tpl = new RainTPL( $tpl_dir = null, $tpl_compile_dir = null, $base_dir = null );

  • Added static property raintpl::$tpl_compile_dir, which define the directory where raintpl save the compiled template. By default is "tmp/", you can set $tpl_compile_dir when you instantiate RainTpl object:

    $tpl = new RainTPL( $tpl_dir = null, $tpl_compile_dir = null, $base_dir = null );

Both $base_dir and $tpl_compiled_dir are static properties of RainTpl class so you can set them just the first time you instantiate the RainTPL object.
$base_dir allow to make easy folder links in Cms that use rewrite rules (ex. /products/category/product), so all the image are with absolute path.

Rain Tpl

Easy PHP template engine which compiles templates.

Join the Google Group
rain google group