I tried incorporating TurboCheetah into Cheetah and (re)discovered
it's using dotted notation ("section.index") rather than the URI
notation ("/section/index.tmpl") that Pylons at least is standardizing
on.  I'm hesitant to put dotted notation into Cheetah, yet I'm not
excited about rewriting TurboCheetah either, and I'm also concerned
about breaking existing TurboGears sites if I add an entry point into
Cheetah.  So I thought I'd ask:

1) Do you have a Pylons or TurboGears site that's using TurboCheetah?
2) Would it be a hardship to convert your render_response or @expose
to URI notation?
3) Does URI notation even work with TurboGears?
4) Mako uses URI notation but tries to autoconvert from dotted
notation.  Is that working OK?
5) Does anybody care if TurboCheetah is put into Cheetah or not?
6) Is anybody maintaining TurboCheetah?  If so I have a patch for you,
to help with Unicode
and fragments.

There's also a bug in pylons/config.py lines 310-317 (Pylons 0.9.5dev
r 1920).  There's a hardcoded 'if' for myghty, mako, genshi, and kid.
It has nothing for cheetah, and if you pass an unrecognized engine
name it silently ignores it and leaves you with no engine, which
causes an exception later in the intialization:

% paster serve ../test.ini
  File 
"/home/sluggo/lib/python2.5/Pylons-0.9.5dev_r1920-py2.5.egg/pylons/wsgiapp.py",
line 64, in __init__
    def_eng = config.template_engines[0]
IndexError: list index out of range

For now TurboCheetah should be configured like Kid.  If it someday
switches to URI notation, I guess it will be configured like Mako.

Another difference between TurboCheetah and Mako is that Mako saves
compiled templates to a cache directory with a .py suffix
(index.html.py), whereas TurboCheetah keeps the compiled templates in
memory and doesn't write a persistent file.   I suppose that's not
worth changing.

TurboCheetah also has a 'cheetah.precompiled' option to import .py
template modules and ignore the .tmpl's.  That flat-out won't work
with URI notation.  On the other hand, it's fast enough to compile a
template that we could just ignore the flag.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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