How include META HTTP-EQUIV = refresh CONTENT = 5 ??

16 views
Skip to first unread message

Enric Rodellas

unread,
Oct 11, 2016, 9:55:33 PM10/11/16
to web2py-users
How include
 <META HTTP-EQUIV = "refresh" CONTENT = "5">
in one file view .html ?
without  edit change layout.html ...

I guess that it would possible using response.headers but really I'm not understanding how to do.

Thank you very much
Enric Rodellas

Massimo Di Pierro

unread,
Oct 11, 2016, 11:24:56 PM10/11/16
to web2py-users
Your layout.html should contain: 

{{block head}}{{end}}

It usually does. If you do not have it add it to the <head>...</head> section. Than in your views:


{{block head}}<META HTTP-EQUIV = "refresh" CONTENT = "5">{{end}}

Reply all
Reply to author
Forward
0 new messages