attention !
due to the recent introduction of an actual turbogears/Mako user, Mako
ticket #46 has been posted and closed, which calls for the
"turbogears" plugin in Mako to actually work with turbogears. this
means that those folks using TG can now use dot-separated names for
their template lookups, such as 'foo.bar.sometemplate', which resolves
to "/foo/bar/sometemplate.mak".
but what does this mean to you, the pylons user ?
it means, if you want the '.' symbol to be left alone (and not
converted to a slash), *all explicit file extension-oriented template
uris must contain a slash !*
this means that:
render_response('index.html')
wont work anymore (because it will not see a slash, will assume its a
TG dotted uri, and make it into 'index/html'). you'd instead have to
say:
render_response('/index.html')
which Ben tells me is the recommended standard for render_response(),
so you all should be doing that anyway (but a brief perusal of some
pylons apps revealed otherwise).
currently, this change is slated to go out with 0.1.8, which will also
feature integration with Babel (translation [no pun intended]: im
eager to get it out).
however, since i think a lot of pylons apps are going to break, i
thought id put this out there as either a warning, or an invite to
tell me to change it to some other way that would make everyone
happy. since all of this is "outside" the scope of Mako, anyway (i.e.
its just buffet stuff).
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---