Re: Change delimiters in HTML_Template_IT
| From: | Pierre-Alain Joye | Date: | Mon, 11 Apr 2005 14:01:55 +0000 |
| Subject: | Re: Change delimiters in HTML_Template_IT | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18686@lists.php.net to get a copy of this message | ||
On Mon, 11 Apr 2005 10:53:00 -0300
martin@bugs.unl.edu.ar (Martín Marqués) wrote:
> Hi all,
>
> I'm using for a proyect HTML_Template_IT for parsing my HTML
> files, and it's working great.
>
> The problem I have is that I need to parse a special file for
> which I need to change the delimiters of the string variables
> from {} to something else (I want to use []). But there is only a
> method for changing the opening delimiter, but not the closing
> one.
There is no delimeter method at all (not public). But both
openingDelimiter and closingDelimiter are public, so:
$it = new HTML_Template_IT(...);
$it->openingDelimiter = '[';
$it->closingDelimiter = '[';
...
$it->show();
should work.
> It's not that hard to make this method (I would copy the one
> that exists and change sone of the variables), but I would like
> it to be commited, si the next "pear upgrade HTML_Template_IT"
> won't destroy my work.
>
> What should I do?
Use the public properties.
Regards,
--Pierre