You could put more template code and HTML onto a single line rather than on separate lines, though that will result in less readable/maintainable templates. Can you show a specific example of (a) some template code, (b) the HTML it generates, and (c) the HTML you would prefer to see instead?
Anthony On Thursday, August 1, 2013 9:23:52 PM UTC-4, Mark Finkelstein wrote: > > Sure; instead of calling minify dynamically, which would take extra > computation, I was wondering if there was a better way so that the excess > spaces do not appear to begin with (by minifying the actual view python > file in a way). Also, thanks for being a great help on this forum. > > On Thursday, August 1, 2013 9:18:36 PM UTC-4, Anthony wrote: >> >> Can you give an example of what you are trying to achieve? >> >> On Thursday, August 1, 2013 9:14:41 PM UTC-4, Mark Finkelstein wrote: >>> >>> I actually meant minifying the view py file itself to remove the spaces >>> where they would have been produced? >>> >>> On Thursday, August 1, 2013 6:39:52 PM UTC-4, Anthony wrote: >>>> >>>> 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.