[Phplib-users] template.inc : Why are blocks parsed over and over again?
Brought to you by:
nhruby,
richardarcher
|
From: Peter H. <PH...@gm...> - 2002-02-01 18:34:44
|
Hi,
because I am trying to understand how exactly template.inc works, I put
some extra debug-stuff in subst():
if ($this->debug & 4) {
echo '<b>NOW SHOWING VARKEYS: </b>'.NL;
foreach ($this->varkeys as $k =3D> $v) echo "KEY: $k --- VAL: $v ".NL;
echo '<b>NOW SHOWING VARVALS: </b>'.NL;
foreach ($this->varvals as $k =3D> $v) echo "KEY: $k --- VAL: $v ".NL;
}
(NL is just "<BR>\n")
This showed me, that *each* time I call parse, e.g to parse a block,
ALL variables are processed everytime. Is this a wanted behaviour?
Could somebody explain this?
Have a nice thread,
Peter
|