On Wed, 13 Nov 2002, Bill Moseley wrote:

> I'm using HTML::Template to display results from a search engine.  Each
> result has a rank or score that is an integer <= 1000 and is available as
> a template variable.
> 
> Now let's say we want to display stars or a percentage instead of the rank
> number.  For example, six stars would be a score of 1000.

don't think it can be done through the template directly.  but this is 
what i do in the perl:

$template->param(n_items => [ ({}) x $n_items ]);

that creates a loop with $n_items empty elements.

-- 
Doubt isn't the opposite of faith; it is an element of faith.
                -- Paul Tillich, German theologian.



-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about 
your web server security? Click here for a FREE Thawte 
Apache SSL Guide and answer your Apache SSL security 
needs: http://www.gothawte.com/rd523.html
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to