Although I haven't used it myself, you should be able to use HTML::Template::Expr to perform this with some nested "<TMPL_IF EXPR=>" statements.



At 06:54 AM 11/13/2002 -0800, 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.

I feel like those are display issues -- the web designer might want to use
10 stars, or a bar graph.  So is there a way to accomplish this in the
template directly based on the rank, instead of requiring a change to the
code that creates the template variables?

Thanks,

--
Bill Moseley [EMAIL PROTECTED]



-------------------------------------------------------
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
----------
David J. Desrochers
Information Systems Manager
CoreComm
2875 Eyde Parkway
East Lansing, MI 48826




-------------------------------------------------------
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