Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.2

Request #7651 Allow dot separated variables and blocks
Submitted: 2006-05-17 16:26 UTC
From: sn_ at gmx dot net Assigned: dsp
Status: Closed Package: HTML_Template_IT (version CVS)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2006-05-17 16:26 UTC] sn_ at gmx dot net (somnium)
Description: ------------ Allow blocks like <!-- BEGIN foo.bar --> or variables like {foo.bar}. Test script: --------------- Index: IT.php =================================================================== RCS file: /repository/pear/HTML_Template_IT/IT.php,v retrieving revision 1.17 diff -u -r1.17 IT.php --- IT.php 12 Apr 2006 01:02:49 -0000 1.17 +++ IT.php 17 May 2006 16:22:14 -0000 @@ -161,7 +161,7 @@ * @access public * @see $variablenameRegExp, $openingDelimiter, $closingDelimiter */ - var $blocknameRegExp = '[0-9A-Za-z_-]+'; + var $blocknameRegExp = '[\.0-9A-Za-z_-]+'; /** * RegExp matching a variable placeholder in the template. @@ -171,7 +171,7 @@ * @access public * @see $blocknameRegExp, $openingDelimiter, $closingDelimiter */ - var $variablenameRegExp = '[0-9A-Za-z_-]+'; + var $variablenameRegExp = '[\.0-9A-Za-z_-]+'; /** * RegExp used to find variable placeholder, filled by the constructor.

Comments

 [2006-08-03 14:59 UTC] dsp at php dot net (David Soria Parra)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.