Hello,
I realize this is a bit of an old thread, but I figured I'd post an answer
anyway as I came up with this same problem recently.
For development, sometimes I create static sites before I get into the
dynamic interaction.
I handled this case with a simple routes.py in the "web2py folder"
for the app I wanted to replace, I put in all the html in one folder at
/APPLICATION_NAME/static/html
Then in routes.py:
routes_in = (
('/APPLICATION_NAME/(?P<any>.*)', '/APPLICATION_NAME/static/html/\g<any>'
),
)
routes_out = (
('/APPLICATION_NAME/(?P<any>.*)', '/\g<any>'),
)
where APPLICATION_NAME is the name of the application I wanted to run
completely as static files.
I'm not certain of any security implications (someone else would have to
comment), so I wouldn't deploy this method in production but it allows me
to do rapid dev.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.