<n:invisible data="foo" .... I would like to pass custom argument to data_foo depending the usage in xml templates. Is this possible? Another question ... <div n:data="foo"> <h2> <n:invisible n:data="title" n:render="post_title"/> </h2> data_foo returns a dictionary say {"title":... "name": ... } Here how to access the "name" dict item from render_post_title? -- Sridhar Ratna - http://srid.bsdnerds.org
On Feb 13, 2005, at 3:55 AM, Sridhar Ratna aka Srid wrote:
<n:invisible data="foo" ....
I would like to pass custom argument to data_foo depending the usage in xml templates. Is this possible?
Another question ...
<div n:data="foo"> <h2> <n:invisible n:data="title" n:render="post_title"/> </h2>
data_foo returns a dictionary say {"title":... "name": ... }
Here how to access the "name" dict item from render_post_title?
If you want to access both the "title" and the "name" attribute from render_post_title, then don't restrict render_post_title's view of the data to only the "title" key. In other words, simply remove n:data="title". (BTW, although the subject of this post says "Parameterized data_foo method", this post has nothing to do with parameterized data methods) dp
I would like to pass custom argument to data_foo depending the usage in xml templates. Is this possible?
Well, the solution for this problem is 'macros' yo fzZzy, merge your macros branch man! :-) -- Sridhar Ratna - http://srid.bsdnerds.org
participants (2)
-
Donovan Preston
-
Sridhar Ratna aka Srid