[htmltmpl] global_vars bug in JIT?
Brought to you by:
samtregar
|
From: Tugrul G. <tu...@ga...> - 2002-06-26 14:47:13
|
It seems that TMPL_LOOP doesn't obey global_vars. I attached a fix that
borrows code from variable handling, but I'm not completely comfortable
with C code interfacing with perl so :)
tugrul@gandalf:~/HT_Bug$ ./test.pl
HTML::Template 2.5
----------------------------------------------------------------------
Outside loop: B_VAR
Inside loop: B_VAR; C_VAR_INLOOP1
Inner loop: B_VAR; C_VAR_INLOOP1
Inner loop: B_VAR; C_VAR_INLOOP2
Inside loop: B_VAR; C_VAR_INLOOP2
Inner loop: B_VAR; C_VAR_INLOOP1
Inner loop: B_VAR; C_VAR_INLOOP2
----------------------------------------------------------------------
HTML::Template::JIT 0.03
----------------------------------------------------------------------
Outside loop: B_VAR
Inside loop: B_VAR; C_VAR_INLOOP1
Inside loop: B_VAR; C_VAR_INLOOP2
----------------------------------------------------------------------
|