This commit is contained in:
mdipierro
2015-03-10 13:42:58 -05:00
parent 3f9f8db62c
commit 46e0dcebf2
95 changed files with 9789 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
{{
import os
from gluon.contrib.generics import pdf_from_html
filename = '%s/%s.html' % (request.controller,request.function)
if os.path.exists(os.path.join(request.folder,'views',filename)):
html=response.render(filename)
else:
html=BODY(BEAUTIFY(response._vars)).xml()
pass
=pdf_from_html(html)
}}