Again an undoubtedly newbie question: what's the best approach for managing small html fragments that are used by several pages in several places, maybe several times in a given page?
What I have in mind is for example a frequently used search result bar kind of thing that displays the total number of results, and provides links for the individual result sets, supposing that the total number of results is more than the number of results allowed in a set so it will look something like: 1-20 21-30 *31-40* 41-47 where *31-40* is the current set. I'm sure you all know what I mean. Such a fragment is only a couple of lines of html and has some internal logic that should be implemented in python. My question is not about this particular problem but rather if I have 20 such tasks that are used all over the place in the app then what's the best approach for managing these? Should one have 20 different templates, one for each, and use these? I imagine something like a library for these kinds of fragments that can be easily referenced from a template that wants to use them. Any ideas? Cheers, Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

