Re: using Cocoon for on-the-fly minification?

2009-09-21 Thread Lars Huttar
Didn't see this message until just now... On 9/15/2009 2:46 PM, Jeroen Reijn wrote: I wrote a small reader, which uses JSMin for minification of javascript files. I've written a blogpost[1] about this reader or you can get the source directly from [2]. Since I did not find a proper place for

Re: using Cocoon for on-the-fly minification?

2009-09-21 Thread Lars Huttar
On 9/21/2009 8:31 AM, Lars Huttar wrote: Didn't see this message until just now... On 9/15/2009 2:46 PM, Jeroen Reijn wrote: I wrote a small reader, which uses JSMin for minification of javascript files. I've written a blogpost[1] about this reader or you can get the source directly from

Re: using Cocoon for on-the-fly minification?

2009-09-15 Thread Jeroen Reijn
I wrote a small reader, which uses JSMin for minification of javascript files. I've written a blogpost[1] about this reader or you can get the source directly from [2]. Since I did not find a proper place for this reader just yet, I've put it online so you can download it. Cheers, Jeroen

Re: using Cocoon for on-the-fly minification?

2009-09-09 Thread Jeroen Reijn
Hi Lars, I've been working with Wilfred on that project, but I'm not really sure if I was the guy that wrote the component, which he talks about. However I have written something similar about 2 years ago. The way I implemented it was by creating a reader. This reader then reads the js van

Re: using Cocoon for on-the-fly minification?

2009-09-09 Thread Lars Huttar
Kamal, Thanks for this reply. Since writing my original post, I tried subclassing ResourceReader to create MinifyingReader, but I just don't have the Java Cocoon knowledge to make it work. Also it seemed like YUI compressor is designed mainly to be command-line driven rather than driven by a Java

Re: using Cocoon for on-the-fly minification?

2009-09-09 Thread Lars Huttar
Jeroen, Dank u wel for looking into this. I look forward to whatever code examples you can find. Re: compressing at build time, please see my reply to Kamal. Regards, Lars On 9/9/2009 2:33 AM, Jeroen Reijn wrote: Hi Lars, I've been working with Wilfred on that project, but I'm not really

Re: using Cocoon for on-the-fly minification?

2009-09-09 Thread Jeroen Reijn
Graag gedaan! :-) I'll see if I can write a nice JSMin based reader on the way home by train today. It should not be that hard to implement. Regards, Jeroen Lars Huttar wrote: Jeroen, Dank u wel for looking into this. I look forward to whatever code examples you can find. Re: compressing at

Re: using Cocoon for on-the-fly minification?

2009-09-08 Thread Kamal Bhatt
Hi. What you are talking about is a reader. I created a cocoon 2.2 reader which minified JS scripts (using jsmin) but the view on the dev mailing list was debate if there was a real need for this and so I abandoned the project [1]. I agreed with Reinhard oin the end. The basic argument

using Cocoon for on-the-fly minification?

2009-09-04 Thread Lars Huttar
Hello, Has anyone successfully configured Cocoon to do on-the-fly minification of js and/or CSS? There are good java-based minifiers out there, such as Dojo ShrinkSafe and YUI Compressor. http://developer.yahoo.com/yui/compressor/ http://dojotoolkit.org/docs/shrinksafe Both use Rhino, which