the word you are looking for is 'render'.
response.render(dict)
Look at example 40 here.
http://www.web2py.com/init/default/examples
On Wednesday, May 21, 2014 6:30:33 AM UTC-7, ilyas toxanbayev wrote:
How to convert html file to python file. Example:
test.html :
*pSomething/p *
*{{for
Are you saying you want to take a web2py template and generate the
intermediate representation in Python code? If so, you can do:
from gluon.template import parse_template
python_code = parse_template(open('path/to/template', 'rb'), path=
'path/to/views')
The path argument should be the path to
2 matches
Mail list logo