You can create a web2py dynamic website, so when it were done you can
convert it in to a static website.

Take this action:

def index():
    form = FORM()
    return dict(form=form)

This will create a <form> and sends to the view, you can grab the rendered
html and save it in an static html file

de index():
    form = FORM()
    context = context=dict(form=form)
    with open("static/index.html","wb") as static:
        html = response.render(context)
        static.write(html)
    return context

In this way you will have an static rendered html file, but the URLS
generated by URL helper will need to be replaced.



-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to