"BJörn Lindqvist" <[EMAIL PROTECTED]> writes:

>> 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>

One way would be:

template="""<p><span py:strip='1'>${item}<br /></span></p>"""

(Haven't tested it)


But if you're just willing simple HTML you'd better do it in a different way.
The power in widgets is more in the interface with Python than just the HTML
part.  In fact, given the proper output you could generate other things as
well, not just HTML...

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to