The context: I have some textual pages, rendered by template
controller.

Apart from the actual text, those pages have some 'metadata-level'
content. For example - page title, date of the last change,
short summary. This information is used within page - in standard
mako inheritance way (base template refers to those fields and
actual pages are %def-ining them), but would be also sometimes
useful from the outside. For example, on index pages (or in
search results) it would be nice to display the title and
short summary of the linked pages.

What is the best way to achieve it? %namespace-ing the referred
page on the index and using def's from there? But wouldn't it
be too expensive if index mentions a lot of pages?

Or maybe I should try to keep those data in database or in python?
But, then, how to edit them in sync with text editing?

How people are usually solving this problem?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to