On Aug 9, 2006, at 1:01 AM, Robin Bryce wrote: > > Thanks for the feedback. Got any thoughts on how you would like an > implementation to look ? I've got time to work on this atm.
I was just emailed with Elvelind about this a couple of days ago, because he was thinking of something else along these lines. I'd love to see some work done on this (on the trunk). One part is template paths (and this is the part that may change how expose finds templates). Under ideal circumstances, if the user wants to completely replace a template they should be able to do so, and template paths would allow this. First Class is the codename for the first major release after 1.0. It will allow applications to be configured in PasteDeploy style. (There's an experiment checked in in the firstclass branch that adds a tg-admin serve command that allows easy composition of apps through PasteDeploy). The second part of this is being able to flexibly swap out the master *or* to add additional match rules. The new Markup template language provides a Kid-like syntax but provides this kind of flexibility in match rule inheritance. I do hope that Markup and Kid can become one, since they are syntactically quite close, but that's really for others to decide. It would likely be possible to make a Kid->Markup converter, given that Kid templates are standard XHTML. There are some constructs that would be harder to convert automatically though. To start with, though, Markup does make it easy to substitute in a new "master" or to add match rules. So, that increases layout flexibility tremendously for apps that you are reusing. This capability just needs to be exposed via Python and config file. (Note that the current trunk does not include the PasteDeploy goodness... this will need to be ported from firstclass, which is a bit old right now.) Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

