On Thu, Oct 6, 2011 at 11:23 AM, Cezary Biernacki <cezary...@gmail.com> wrote: > Hi, > OK. I need to get a permission as code is owned by my employer, hopefully I > should be able to get it next week. Anyway, it is easy to build such > integration with Tapestry 5.3 by implementing ResourceTransformer interface > and contributing it StreamableResourceSource. > > For both CoffeeScript and LessCSS I use their JavaScript compilers executed > from Java using for Mozilla's Rhino. CoffeeScript source is used > unmodified, but LessCSS required small bit of hacking. > > Only deficiency of ResourceTransformer is that does not support well > situations when a resource includes other files, e.g. by @import directive > in LessCSS - relative location of transformed files is unknown (so resolving > included files can not relative) and there is no good way to inform about > changes to dependencies (solved in my hack, but it would not work in T5.3). >
So, could this be addressed by passing the underlying Resource to the ResourceTransformer? That's a minor change; it might be a breaking one, but that's acceptable in a beta for functionality introduced in the same release. > > I must say that Tapestry + CoffeeScript + LessCSS make web development feel > smooth. > > Best regards, > Cezary > > > > > On Thu, Oct 6, 2011 at 3:50 PM, Immutability <devli...@bielik.org> wrote: > >> Me too! I just started playing with LessCSS tis week and it seems really >> interesting. >> >> Rado >> >> On Thu, Oct 6, 2011 at 2:03 PM, Toby O'Rourke <toby.orou...@gamesys.co.uk >> >wrote: >> >> > Wow! I'd certainly be interested to see what you've done >> > >> > Thanks, >> > >> > Toby. >> > >> > On 06/10/2011 12:54, "Cezary Biernacki" <cezary...@gmail.com> wrote: >> > >> > >Hi, >> > >I have implemented integration LessCSS and CoffeeScript compilers with >> > >Tapestry 5.2. Actually most of it was porting necessary features (i.e. >> > >support of ResourceTransformer-s) from 5.3 and the integration should be >> > >compatible with Tapestry 5.3. I can open source it if there is enough >> > >interest. >> > > >> > >Best regards, >> > >Cezary >> > > >> > > >> > >On Thu, Oct 6, 2011 at 9:45 AM, Stephan Windmüller < >> > >stephan.windmuel...@tu-dortmund.de> wrote: >> > > >> > >> On 06.10.2011 00:58, Howard Lewis Ship wrote: >> > >> >> > >> > No progress yet ... it was more important to get 5.3 out than to add >> > >> > this feature. I expect to add it in Tapestry 5.4. >> > >> >> > >> I hope it will be an optional feature. The lesscss-site looks very >> ugly >> > >> with JavaScript disabled. >> > >> >> > >> - Stephan >> > >> >> > >> >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> > For additional commands, e-mail: users-h...@tapestry.apache.org >> > >> > >> > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org