I do not know if it a good idea but you can

create a controller called, for example "any" and in it

def index():
     response.view='any/%s.html' % request.args(0)
     return dict()

and then in routes.py:

routes_in=('/yourapp/any/(?P<a>.*)','/yourapp/any/index/\g<a>'),)
routes_out=('/yourapp/any/index/(?P<a>.*)','/yourapp/any/\g<a>'),)

and any url like http://...:8000/yourapp/any/whatever.html will be
mapped into view/any/whatever.html

Massimo

On Oct 8, 7:30 am, "Jason (spot) Brower" <encomp...@gmail.com> wrote:
> I don't think so.  But I doubt that 2 lines a page is that big of a
> deal.  It comes in especially handy when you need to call the page.
>
> On Thu, Oct 8, 2009 at 3:17 PM, sebastian <sebastianov...@gmail.com> wrote:
>
> > Hi All,
>
> > I have a lot of pages that do not need any controller activity.
> > Therefore I have a lot of
>
> > def my_function():
> >    return dict()
>
> > and then a my_function.html with my html.
>
> > Is there any way to create html pages without creating any associated
> > function ?
>
> > thanks ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to