Hi all !
I need to set an HTML string to an attribute of a div element . Final
output should look like this :
{{{
#!html
<div data-attr="<div> something inside a div </div> " >
something </div>
}}}
Nonetheless , readability matters , and real html snippet is more
complex than that . So I wanted to use something like this in Genshi
template
{{{
#!genshi
<div py:def="testing_123()">something inside a div </div>
<div data-attr="${SOMETHING_I_DONT_KNOW(testing_123())}" > something </div>
}}}
I'm looking for hints to figure out what will SOMETHING_I_DONT_KNOW
look like i.e. it has to
- render the div after executing the function defined using py:def
- escape attr chars
Thanks in advance !
--
Regards,
Olemis
Facebook => http://www.facebook.com/olemis
Twitter => http://www.twitter.com/olemislc (@olemislc)
Blog ES => http://simelo-es.blogspot.com
Blog EN => http://simelo-en.blogspot.com
Quora => http://www.quora.com/olemis
Youtube => http://youtube.com/user/greatsoftw
Featured article : [svn r11148] XmlRpcPlugin: `wiki.getPageHTML()` now
supports wiki manipulators that can possibly modify the wiki text
content before rendering. With test.
http://feedproxy.google.com/~r/simelo-news/~3/jk0kgDl73ss/08d0967ae31a
Get a signature like this. CLICK HERE.
--
You received this message because you are subscribed to the Google Groups "Trac
Development" 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/trac-dev?hl=en.