And another way to do it:
no routers.py
app init
controller default.py
# ---- example index page ----
def index():
return dict()
views index.html
{{=redirect(URL('static','pages/landingpage/index.html'))}}
and all the html css js files and everything in the
static/pages/landingpage directory.
On Friday, May 13, 2016 at 8:14:45 AM UTC-7, Mike Stephenson wrote:
>
> I tried the following but it didn't work.
> in controller:
>
> def rough():
> import os
> file = open(os.path.join(request.folder, 'static','index.html'))
> return locals()
>
>
> in view:
>
> {{extend 'layout.html'}}
> {{=file}}
>
--
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.