Live example for jsus rack middleware.
bundle install
git submodule update --init
rackup
- Go to http://localhost:9292/javascripts/jsus/require/CKEditor and see the file being built
- Experiment with urls. E.g.:
/javascripts/jsus/require/CKEditor:plugins.about.plugin+CKEditor:plugins.adobeair.plugin.js
5a. Wildcards also work!/javascripts/jsus/require/**:*undo*.js
Caching is on by default, but sinatra lets middleware do its work before serving static files. This leads to regeneration per request. Use caching proxy, like kick-ass nginx before your sinatra in order to succeed.
Application and libraries: UNLICENSE, same as jsus.
CKEditor and other files: look in the respective sources.