onthefly

Why

When you are managing a large code base in javascript you'll want to organize your files properly having separate files for each classes (the same that you would do with your java classes).

You would then concatenate all your files together and include the concatenated file in your web page to reduce network overhead.

You would do this process on and on...and it takes time.

And the same process applies to css files too

Solution

OnTheFly is a simple servlet that is configured with a ant-like pattern that will concatenate your files for you.

Just add the jar, few rows in the web.xml and you are done.

Open source

The code is open source and hosted on github.

This is my first project using git (and github) so feel free to help me with the good work

Known issues and missing features

  • Support for excludes

  • JavaScript compression

  • CSS compression

  • Support for (in memory) caching

I will try to add those features soon, specially if I get some feedback

Want to help

Feel free to help and submit a patch or help with the documentation/specification.

I hope that the code you will submit will be unit tested....

Comments

Popular posts from this blog

Disable Skype's mood message chat

What a mistake: case-sensitive HFS on my mac book

Home Assistant in Docker on MacOs BigSur