I think something like:

from gluon.contrib.minify import htmlmin

def myaction():
    ...
    return htmlmin.minify(response.render(dict(...)))

Anthony

On Thursday, August 1, 2013 5:57:51 PM UTC-4, Mark Finkelstein wrote:
>
> I noticed that as it stands, the html response sent is filled with spaces 
> due to formatting, I was wondering if there was a way to 'minify' or remove 
> all the spaces and compress the view file to decrease the size of the 
> response and make it more aesthetically pleasing. Thank you in advance.

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to