Re[2]: [SMARTY-DEV] Incorrect newline counters
| From: | Dmitry Koteroff | Date: | Mon, 31 May 2004 18:37:08 +0000 |
| Subject: | Re[2]: [SMARTY-DEV] Incorrect newline counters | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2350@lists.php.net to get a copy of this message | ||
>> > > WHAT IS THIS? Why \n? It breaks line number!
>> >
>> > yes, but nobody here does really seem to care, except of you.
>>
>> Actually, I'm certain that messju is aware that many of us care very
>> much -- but I'm certain too that he is also aware that we care about
>> completely different issues surrounding the topic.
MM> I just wanted to say that hardly anybody seems to care about the fact
MM> that line-numbers in source templates don't correspond to line-numbers
MM> in compiled templates. To me this is really a non-issue although I had
MM> to debug compiled templates from time to time due to errors that
MM> slipped through Smarty's compiler.
I have just finished CMS which uses Smarty and automatically
shows error and notice messages (with additional stacktrace)
directly in the source template (not in the resulting compiled
code). It is very useful. And if line numbers are out of sync, we
have debugging mess.
In general, it seems that line number synchronization is the
hardest task in the world (see, for example, JSP, Cocoon, Mason
and other template-like engines). However this task is very
simple in practice and needs no mere than couple of hours of
programming.
--
Best regards,
Dmitry Koteroff.