From c0f89b782975ce44f019afa039ff1e93053c2f5d Mon Sep 17 00:00:00 2001 From: andrey Date: Mon, 22 Jan 2001 15:29:36 +0000 Subject: [PATCH] *** empty log message *** --- NEWS | 3 +++ demo/templates/index.tpl | 2 +- templates/index.tpl | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 40246df0..a010627c 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ + - fixed the bug that prevented using non-array values for 'loop' attribute + (Andrei) + Version 1.0a ------------ - fixed bug that caused templates to recompile every time (monte) diff --git a/demo/templates/index.tpl b/demo/templates/index.tpl index ab5cf4fb..17c86bcb 100644 --- a/demo/templates/index.tpl +++ b/demo/templates/index.tpl @@ -15,7 +15,7 @@ the value of $SCRIPT_NAME is {$SCRIPT_NAME} hello, my name is {$Name|upper} My interests are: -{section name=outer loop=2} +{section name=outer loop=$FirstName} {if %outer.index% is odd by 2} {%outer.rownum%} . {$outer/FirstName} {$outer/LastName} {else} diff --git a/templates/index.tpl b/templates/index.tpl index ab5cf4fb..17c86bcb 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -15,7 +15,7 @@ the value of $SCRIPT_NAME is {$SCRIPT_NAME} hello, my name is {$Name|upper} My interests are: -{section name=outer loop=2} +{section name=outer loop=$FirstName} {if %outer.index% is odd by 2} {%outer.rownum%} . {$outer/FirstName} {$outer/LastName} {else}