PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_IT » Bug #7651

Allow dot separated variables and blocks

Details

Request #7651Allow dot separated variables and blocks
Submitted2006-05-17 16:26 UTC
Fromsn_ at gmx dot net
Assigneddsp
StatusClosed
PackageHTML_Template_IT
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2006-05-17 16:26 UTC] sn_ at gmx dot net

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.

[2006-08-03 14:59 UTC] dsp at php dot net

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.