Re: Iteration in Mako templates

2007-05-16 Thread skip . montanaro
dan> To be fair, I'd say they are both nuts. Hmmm... I wonder if they are friends? ;-) -- Skip Montanaro - [EMAIL PROTECTED] - http://www.webfast.com/~skip/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "p

Re: Iteration in Mako templates

2007-05-16 Thread Dan
Lol. The other article was just as fanatical, using cartoon images to persuade the reader into thinking CSS was the best thing since 'sliced bread'. To be fair, I'd say they are both nuts. Michael Bayer wrote: > > On May 16, 2007, at 12:34 PM, Dan wrote: > >> The choice between CSS 'tables' a

Re: Iteration in Mako templates

2007-05-16 Thread Cliff Wells
On Wed, 2007-05-16 at 14:10 -0400, Michael Bayer wrote: > > On May 16, 2007, at 12:34 PM, Dan wrote: > > > The choice between CSS 'tables' and HTML 'tables' is purely a matter > > of opinion. > > > > Just to point out a totally different point-of-view, please see: > > > > http://www.decloak.co

Re: Iteration in Mako templates

2007-05-16 Thread Michael Bayer
On May 16, 2007, at 12:34 PM, Dan wrote: > The choice between CSS 'tables' and HTML 'tables' is purely a > matter of opinion. > > Just to point out a totally different point-of-view, please see: > > http://www.decloak.com/Dev/CSSTables/CSS_Tables_01.aspx > theres an argument to use tags for s

Re: Iteration in Mako templates

2007-05-16 Thread Dan
The choice between CSS 'tables' and HTML 'tables' is purely a matter of opinion. Just to point out a totally different point-of-view, please see: http://www.decloak.com/Dev/CSSTables/CSS_Tables_01.aspx Alexandre CONRAD wrote: voltron wrote: nevermind % for item in c.l

Re: Iteration in Mako templates

2007-05-16 Thread voltron
Yes, actually, the code which I first posted is from the tutorial, my real production code looks like this: % for item in c.sublinks: ${item} % endfor Thank you all for the tips On May 16, 4:20 pm, Alexandre CONRAD <[EMA

Re: Iteration in Mako templates

2007-05-16 Thread Dan
You do have syntax error at: c.links[item]} should be: ${c.links[item]} I believe this is what you want... assuming that c.links is being declared in your controller! #controller def some_action(self): c.links = ["link1","link2","link3"] return render_response('/some_template.mak') #som

Re: Iteration in Mako templates

2007-05-16 Thread Alexandre CONRAD
voltron wrote: > nevermind > > > % for item in c.links: > >${item} > > % endfor > Nothing to do about your initial problem, but by reading your HTML, I can only suggest that you'd probably prefer using HTML unordered lists , lis

Re: Iteration in Mako templates

2007-05-16 Thread Dan
You do have syntax error at: c.links[item]} should be: ${c.links[item]} I believe this is what you want... assuming that c.links is being declared in your controller! #controller def some_action(self): c.links = ["link1","link2","link3"] return render_response('/some_template.mak') #som

Re: Iteration in Mako templates

2007-05-16 Thread voltron
nevermind % for item in c.links: ${item} % endfor On May 16, 4:02 pm, voltron <[EMAIL PROTECTED]> wrote: > Hi, > > I tnink this is for the Pylons group and not Mako, if I´m mistaken, I > apologize > > given: > > c.links =["link1

Iteration in Mako templates

2007-05-16 Thread voltron
Hi, I tnink this is for the Pylons group and not Mako, if I´m mistaken, I apologize given: c.links =["link1", "link2", "link3"] % for item in c.links: c.links[item]} % endfor How do I iterate over the list? My code above does no