Hi all, For sometime, I was thinking of a flexible yet easy to manage CMS for creating wiki-like pages. That is:
- content and presentation of each page should be defined freely and independently almost as free as in plain HTML documents when needed - common blocks of content and templates should be defined and re-used - content from separate django applications should be accessible from within the templates (usually considered bad design, I know, but I need the power of view functions in the templates in some rare cases) Would it be a good idea to define each page as a separate template and solve this with template tags? For example, we may have a "section" custom template tag which takes the parameter that tell it which template to use with which parameters like that: {% section info_box title:"hello" body:"important information" ... %} {% section photo_with_details photo:photo.get(id=1) %} Then section tag, loads the info_box or photo_with_details template and render it with the given variables and returns the rendered HTML snippet. Another alternative to this approach may be implementing an xml syntax: <section template="tmpl1"> <title>hello</title> <body>what's up?</body> </section> or accessing the model methods: <section template="photo_thumbs"> <photo_object>photo.objects.filter(tag='europe')</photo_object> </section> Do you think this approach will be beneficial in some cases and worth giving a try to implement? Thanks, oMat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---