not sure I understand.

you can {{include 'othertemplate.html'}}

{{def item(u)}}any html you like using {{=u}} and loops{{return}}

then inlude it {{item(3)}}

On Dec 18, 5:29 pm, mike <michal...@gmail.com> wrote:
> Are there any suggestions for template systems with web2py
>
> I would like to have an ability to have small templates that can be
> reused througout the main page.
>
> Ex.
> maybe have a file -> menuItem.html (would really like the ability to
> have separate files for different sub-templates)
>
> <li>{{item}}</li>
>
> Then in my control code have a loop that would go through an array of
> items and output html code that then later could be added to the main
> template.
>
> I know that this is just a standard template practice, but I am knew
> to the framework and would like to have a suggestion for a best
> approach.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to