Re: [SMARTY-DEV] Incorrect newline counters
| From: | messju mohr | Date: | Mon, 31 May 2004 17:16:22 +0000 |
| Subject: | Re: [SMARTY-DEV] Incorrect newline counters | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2349@lists.php.net to get a copy of this message | ||
On Sun, May 30, 2004 at 11:55:36PM -0700, boots wrote:
> --- messju mohr <messju@lammfellpuschen.de> wrote:
> > On Mon, May 31, 2004 at 03:31:23AM +0400, Dmitry Koteroff wrote:
> > > RA> Basically, the smarty templates are geared so the resulting
> > > RA> output is the same as the template, and is a higher priority
> > > RA> than the compiled template itself.
> > > Aargh!
> > >
> > > What do I see in _compile_foreach_start(), for example?
> > >
> > > $output .= "if (isset(\$this->_foreach[$name]))
> > unset(\$this->_foreach[$name]);\n";
> > > $foreach_props = "\$this->_foreach[$name]";
> > >
> > > 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.
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. To me this is really a non-issue although I had
to debug compiled templates from time to time due to errors that
slipped through Smarty's compiler.