________________________________________ Kiran Subbaraman http://subbaraman.wordpress.com/about/
--
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 web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{{include 'mytemplate.html}}<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>anHTMLfile</title>
</head>
<body>
HELLO from anHTMLfile.html <br/>
see <a href="https://groups.google.com/forum/#!topic/web2py/Wqipxb_5-j4">https://groups.google.com/forum/#!topic/web2py/Wqipxb_5-j4</a>
</body>
</html>
def showHTMLFile():
'''
https://groups.google.com/forum/#!topic/web2py/Wqipxb_5-j4
'''
import os
with open(os.path.join(request.folder, 'static', 'anHTMLfile.html')) as x:
file_contents = x.read()
return dict(file_contents=XML(file_contents))
{{=file_contents}}
views index.html{{=redirect(URL('static','pages/landingpage/index.html'))}}