ncr / rack-cat Goto Github PK
View Code? Open in Web Editor NEWRack middleware to concatenate yor assets (static, dynamic and remote) Use it to serve your javascripts and stylesheets faster!
Home Page: http://github.com/ncr/rack-cat
Rack middleware to concatenate yor assets (static, dynamic and remote) Use it to serve your javascripts and stylesheets faster!
Home Page: http://github.com/ncr/rack-cat
Rack::Cat ========= A Rack middleware to concatenate your assets (static, dynamic and remote) and serve javascripts and stylesheets faster. Currently it supports concatenating static files (read from disk) and dynamic pages (read from the app itself). Remote file support will become reality when I find someone who needs it ;) Usage ===== Use like any other Rack middleware. Rack::Cat constructor takes an options hash as a second argument: { :bundles => { "/all.css" => [ "/stylesheets/layout.css", "/stylesheets/widgets.css"], "/all.js" => [ "/javascripts/jquery.js", "/javascripts/application.js"] }, :sources => ["tmp/public", "public"], # directiories to search for files (that tmp/public comes handy if you use heroku) :destination => "public", # directory to write files to ("tmp/public" on heroku) :debug => Rails.env.development? # regenerate files on each request (for use in development mode) } So in Rails you would type in config/environment.rb: config.middleware.use Rack::Cat, { options hash like the above one here } Contribute ========== Fork. Commit. Send pull requests. Author ====== Jacek Becela http://github.com/ncr License ======= MIT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.