News 
01 May 2011

RainTPL 2.6.4 released

RainTPL 2.6.4 version improve all the features introduced in RainTPL 2.6, fix a few bugs and it's even faster:
Changes:

  • Output Buffer, removed when unnecessary the output buffer. This change speed up the engine when has to print a template.

  • Cache_id added, added a parameter cache_id, to the cache methods, that enables to create more caches for a single template.

  • Compilation filepath changed, compiled templates and caches are saved all into the cache directory and saved with the md5 of their name and directory to avoid name collision.

  • Path replace improved, all redoundancy in the path as ../ and ./ are removed, to reduce the path used by path_replace.

  • Static method modifier, it's possible now to use static method as modifiers, e.g. {$date|time::format:true}

  • Code improvements, improved the compiler function. We removed a few variables deprecated.

  • Regular expression improved, improved the regular expression, which increased of about 10% the compilation speed.

  • Improved path replace, path_replace function now replaces also the src of input image. Added https to the regular expression that evaluate the absolute path.

  • Bug fix, fixed a few minor bugs: error in parsing special variables into the loop.
    Fixed the modifier bug when called on complex variable like {$this->request->uri[2]|intval}.


The documentation has been updated on the RainTPL 2.6.4 version.

Thanks to Esperlu for the contributing on the regular expression, and thanks to everyone else who contributed actively for debugging and improving the template engine.

Click here to download RainTPL 2.6.4

Rain Tpl

Easy PHP template engine which compiles templates.

Join the Google Group
rain google group