You might want to try writing an inclusion tag:
http://www.djangoproject.com/documentation/templates_python/#inclusion-tags
They are much simpler to write than template tags, and more "designer
friendly." They let you write a separate template that gets rendered
inside of another template (similar to how partials worked in Rails).
So for example you could write a template tag called 'list_users', and
create a template called 'list_users.html'. Then in
frontpage_template.html you could add something like {% list_users %}
and it will render the list_users.html template.
I work primarily with designers who write the actual templates, so
it's much more intuitive for them to simply drop in something like {%
main_menu %} whenever they want to show the site nav, and then just
edit main_menu.html when they want to modify the markup/design.
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---