Re: [htmltmpl] Template math

2002-11-13 Thread Philip S Tellis
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 > nu

Re: [htmltmpl] Template math

2002-11-13 Thread Dave Desrochers
Although I haven't used it myself, you should be able to use HTML::Template::Expr to perform this with some nested "" 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 int

[htmltmpl] Template math

2002-11-13 Thread Bill Moseley
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 100