adam wrote:
>> Untested:
>>
>> <tr py:for="start in xrange(0, len(thumbnail_files), 4)">
>> <td py:for="f in thumbnail_files[start:start+4]">
>> <a href="${large_files[f]}">view a large image</a>
>> </td>
>> <py:if="0 < start - len(thumbnail_files) < 4">
>> <td py:for="_ in xrange(start - len(thumbnail_files))"/>
>> </py:if>
>> </tr>
> Thants is causing an template error saying there is bad syntax writing
> with the line
>
> <py:if="0 < start - len(thumbnail_files) < 4">
>
> do i need to import something into my template for the genshi to work?
You need to escape the '<' chars, they are special chars in (X)HTML, i.e.:
<py:if="0 < start - len(thumbnail_files) < 4">
I suggest you read the Genshi manual for more information and template
basics.
Chris
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---