On Thu, 2006-05-04 at 14:56 +0100, Robin Haswell wrote:
> I was wondering if there's any TG-way of accepting methods with ".html"
> appended - eg:
>
> "GET /index.html" -> Root.index
Name your methods with a "_" in place of any "."s like:
class Root():
@expose()
def index_html(self):
pass
# alias the index so it is used for "/" or "/index.html"
index = index_html
@expose()
def mypage_html(self):
pass
--
Matt Good <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---