i do think it's a good idea if web2py will also do jsmin during compile. vince
On Nov 5, 10:59 pm, vihang <vihan...@gmail.com> wrote: > If not part of web2py, then It would be a superb plugin. Maybe it > could be looked at as a candidate for 'must have' plugins. I was > looking for one myself, had to make do with some ad-hoc arrangement. > > On Nov 5, 6:47 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > This is useful. I am not convinced it should be included in web2py. > > > On Nov 5, 7:44 am, Alexey Nezhdanov <snak...@gmail.com> wrote: > > > > Hello list. > > > > Is there any built-in minification facilities in web2py? > > > I was too lazy to check out latest version, and it looks like there was no > > > such thing one week ago. > > > So I put down my own one: > > > ==================================http://www.crockford.com/javascript/jsmin.py.txt > > > > template.py: > > > from contrib.jsmin import jsmin as minify > > > ... > > > def parse_template(... > > > ... > > > # in the last loop, 13 lines before file end: > > > if t.lower()[-3:]=='.js': child=minify(child) > > > =================================== > > > I understand that this is hugely sub-optimal - one would put a file > > > caching > > > there for better perfomance. But it's ok for me for now. > > > > It would be good though if someone (f.e. me) will improve this minifier to > > > at least add variables renaming. > > > There is another chunk of code that can be used as a > > > reference:http://www.tero.co.uk/scripts/scrambler.php > > > > -- > > > Regards > > > Alexey Nezhdanov --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---