Exactly. Thanks. On Nov 21, 4:45 pm, Tim Chase <[email protected]> wrote: > > When I do <tr id="item_{{ product.id }}"> in a template I get <tr > > id="item_1"> in the rendered html as expected. > > > Now I want to do {% cycle '<tr id="item_{{ product.id }}">' '<tr > > class="odd" id="item_{{ product.id }}">' %}, but the desired > > concatenation does not happen. > > > How do I achieve what I want? > > sounds like you want something like > > <tr {% cycle "class='odd'" "" %} > id="item_{{ product.id }}"> > > -tim
-- You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=.

