[Zope-dev] Repeating a piece of HTML code

Steve Alexander steve@cat-box.net
Fri, 02 Jun 2000 14:01:23 +0100


Steve Alexander wrote:
> 
> Shane Hathaway wrote:
> >
> > <dtml-in expr="_.range(0, movie_rating)">
> >   <img SRC="star.gif" height=15 width=15>
> > </dtml-in>
> >
> > Replace movie_rating with the variable that represents the movie rating.
> 
> What about <dtml-var "'*' * movie_rating"> ?

Or rather:

  <dtml-var "'<img SRC=star.gif height=15 width=15>' * movie_rating">

--
Steve Alexander
Software Engineer
Cat-Box limited