Re: loop
| From: | Andrei Zmievski | Date: | Fri, 13 Apr 2001 16:53:14 +0000 |
| Subject: | Re: loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-544@lists.php.net to get a copy of this message | ||
At 09:39 AM 4/13/01 +0200, Ivo Jansch wrote:
Well, you can leave both methods in and scan for [] in the token. If it exists, parse it the new way, if it doesn't, the old way. This will introduce an extra regexp which might slow down the compiler a little bit, but you could counter that by having a member _backward_compatible = false, causing it to skip the check.It's not that simple - there are a couple of places where a complex regexp is used to find variables. I'd rather make a clean break and just provide a script that you can run on your templates to convert them to new format. -Andrei