I apologize. My answers were not always informative not correct. I understood the issue was about minification of css and js which is included.
As far as the minification of html is concerned. I do not think it belongs to response.render because there is nothing html specific in there. If you want to propose the inclusion in contrib of a function that performs minimification of html, I would not oppose to it. It could be called with: from gluon.contrib.htmlminify import minify retrun minify(response.render(...)) Yet I am not sure this will provide any improvement over gzip http responses. In fact the gzipping would be performed by the web server and would result in smaller data and faster processing. It is different for JS because there the minimization can take advantage variable name rewriting. What do other people think? On Jan 31, 2:23 pm, Kernc <kernc...@gmail.com> wrote: > Hi, > > Looking to this list for guidance... > > The web2py issue #369 (http://code.google.com/p/web2py/issues/detail? > id=369) discusses a possible method of minifying response output HTML > (compressing it as in removing all extraneous whitespace). The issue > was closed with WontFix because "minify feature is now built-into > web2py". I looked through the book, 4th Ed., and the only minifcation > I found (http://web2py.com/books/default/search/29?search=minify) was > that of CSS/JavaScript (response.optimize_css). > > In a later issue (http://code.google.com/p/web2py/issues/detail? > id=624), again opened by yours truly, Massimo said, "Will fix the > book. This is already in stable." Yet the only minification I see in > the source tree is for CSS/JS (http://code.google.com/p/web2py/source/ > browse/#hg/gluon/contrib/minify). > > I'd like to know where's my response.render({...}, minify=True) or how > else am I to use supposedly-existent HTML minification feature. > > There is popular > demand:http://groups.google.com/group/web2py/browse_thread/thread/1cd9856537... > > Thank you!