On Sat, May 24, 2008 at 3:57 AM, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>
> Roger Demetrescu schrieb:
>> On Fri, May 23, 2008 at 8:48 PM, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>>> Two immediate questions spring to mind:
>>>
>>> - What are the disadvantages of the dotted path system?
>>> - What are the advantages of the proposed new system?
>>
>> I dunno If you missed Jorge Varga's reply, but he wrote this:
>>
>> """
>> I read this a while ago and it totally convinced me
>> http://wiki.pylonshq.com/display/pylonscookbook/Template+plugins+(for+developers)
>> under "History, dotted notation vs URI notation, and the future"
>> """
>>
>> I think that URL answers your first 2 questions...   :)
>
> But this page also says:
>
> "However, again, the template lookup is handled entirely by the plugin,
> so it can do whatever it wants. A future plugin may load templates from
> a database, using a completely different notation to identify them."
>
> and also mentions that dotted-path notation is required for template
> engines whose inheritance model relies on Python modules, so I don't
> understad why dotted-path notation should be deprecated.
>
this is really a half truth, as the fact that the plugin engine may
demand a python module doesn't means it can't be converted into it.
for example take a look at
http://www.makotemplates.org/trac/browser/mako/tags/rel_0_1_10/lib/mako/ext/turbogears.py#L30
mako internally works based on paths so the plugin just fixes that.
The same could be done but backwards and the plugin enginel will still
work.

> Or should this only apply to the Genshi and Mako engines? Then what
> about all the existing TG1 sites that use Genshi? For these the Genshi
> plug-in must still support the dotted-path notation, or they will break.
>
I do agree that both should be supported.
> Chris
>
> >
>

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

Reply via email to