News 
10 March 2011

RainTPL 2.6.2 released

RainTPL 2.6.2 confirm few improvements of the version 2.6 beta.
Changes:

  • Sandbox, introduced in 2.6 beta, the sandbox is now part of the RainTPL. The sandbox is implemented with a $black_list that validate the templates. If any elements of the $black_list is found into the template, the parser stops the compilation and show the error. It's possible to configure the $black_list.

  • configure, added the configure static method, to configure the settings of RainTPL.

  • path_replace_list, is now possible to configure the HTML elements, parsed by path_replace. By default RainTPL replace the relative paths of <img>, <link>, <script> and <a>.

  • php-eating-newline-after-closing-tag, fixed the bug of PHP that eat the newline after the closing tag. Read here for more info.

  • RAINTPL_CHECK_TEMPLATE_UPDATE, is now the static var $check_template_update. By default is true.

  • Modifiers improved, you can now use the modifiers on string, number, constant and variables. We encourage the use of modifier instead of function because function tag could be deprecated in one of the next version.

  • check {if} close, now the parser alert you if there is a not-closed {if} tag.

  • {$template_info}, this special var that show the list of all variables assigned to the template.

  • Code optimization, we optimized the code to maintain it fast.

  • loading PHP View removed, RainTPL doesn't load anymore PHP View, use the RainView class instead. RainView is part of the RainFramework.

 

Click here to download RainTPL 2.6.2

Rain Tpl

Easy PHP template engine which compiles templates.

Join the Google Group
rain google group