hi remi,

is there any special reason building the html element with element tree? 
you certainly can use the value in your template.

<a href="{{ upd_link }}">update</a>

On Friday, September 28, 2012 6:47:50 PM UTC+3, Remi Jolin wrote:
>
> Hello, 
>
> Still trying to get my marks with TG2.2 :-) 
>
> With TG1/genshi when I wanted to include some html pieces dynamically 
> generated is used ElementTree 
> for example : 
> upd_link = ET.Element('a', href='/xxx/%s' % value) 
> upd_link.text = 'some text' 
>
> and I passed this value in the returned dict. 
>
> In genshi I simply add something like 
> <a py:replace="upd_link">place holder</a> 
>
> Now I tried to do the same with TG2.2 and jinja ({{ upd_link }}) but I 
> can't get anything displayed (no error, but nothing generated). 
>
> So how can I get the same result I had with TG1 ? 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/turbogears/-/v-nJZb4YLJ8J.
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?hl=en.

Reply via email to