> Unless I'm very, very mistaken, with widgets, you can pass in any
> parameters you want, do things with those values, then render them as
> html. What more could you want?
>
> I can't think of anything of the top of my head that you couldn't do
> with a widget if you pass in the right parameters.
I want to generate HTML output like this:
<p>item1<br/>
item2<br/>
...
itemX</p>
item1..itemX are either plain text strings or they are contained
widgets. It is trivial to manually generate text like this, but I want
to do it the idiomatic, widgets-way. My requirement for the solution
is that it must not be much more complex than this:
def list_items_to_html(items):
return "<p>" + "<br/>".join(render(item) for item in items) + "</p>"
--
mvh Björn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---