On Sun, May 19, 2013 at 9:07 AM, Mika Sjöman <mikasjo...@gmail.com> wrote:
> So how do I turn minify on? > Here's one direct example: http://code.google.com/p/web2py/issues/detail?id=668 If you need to minify many controller responses, you can use the following decorator: from gluon.contrib.minify import htmlmin def minify(func): def _f(): out = func() return htmlmin.minify(response.render(out) if isinstance(out, dict) else out) return _f used as: @minify def some_controller(): ... return dict(...) -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.