Anthony Gardner wrote: > .......... for later 'shoving out to display'. > > I'm trying to append some html and data to two vars and display them at > a later date. I've tried appending to a normal string, pushing onto a > list, using String.new and append ........ but nothing but hair pullling. > > When using the method below, it just shoves the html straight out to > display, with list or String, I have a problem with the html tags even > when trying to escape them. > > I can;t think anymore ....... need tea. Need help, please and then we > can add a big site to the list of sites ;) > > > pseudo ... > FOREACH somelist > IF sth == 'new' > new = new _ '<td>New</td> > ELSE > old = old _ '<td>Old</td> > END > END > > <tr blue>[% new %]</tr> > <tr red>[% old %]</tr> > > Merci (mercy on me) -Ants
That pseudo code looks mostly fine. (Although there are no ending quotes after the </td> or semi-colons.) Give us some real code and we can probably help you out here. Or implement your psuedo code and post it if you still can't get that to work. -- Josh _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
