Re: [SMARTY-DEV] Re: Incorrect newline counters
| From: | Bharat Mediratta | Date: | Thu, 25 Nov 2004 18:52:59 +0000 |
| Subject: | Re: [SMARTY-DEV] Re: Incorrect newline counters | ||
| References: | 1 2 3 4 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2589@lists.php.net to get a copy of this message | ||
Greg Stark wrote:
messju mohr <messju@lammfellpuschen.de> writes: I just wanted to say that hardly anybody seems to care about the fact that line-numbers in source templates don't correspond to line-numbers in compiled templates. Really? I suspect if you ask your users you'll find a lot of griping about this. It's really a headache that virtually any typo in a smarty template produces an error that can only be debugged by opening up an unreadable compiled template to figure out where the error actually happened.Just to offer a counterpoint, I rarely care about correspondance between line numbers in Smarty templates and the resulting PHP files. Yes, it would be convenient but there have only been very rare occasions where I had to dig into the generated PHP to understand a problem. Many Smarty issues are caught during the compile phase, and it will tell me the exact line in the template where the failure is. I very rarely have problems beyond that. Most of my Smarty work has been on a single application which is about 13.5K lines of .tpl files. -Bharat