Benefits

Improve your website’s Y-Slow score

A faster website means happier users and can even improve your business’s bottom line. Cassette combines and minifies your assets into bundles. This results in fewer HTTP requests, reducing page load time.

Cassette bundles are served using the right HTTP caching headers and compressed to ensure optimal client download performance.

Bundle URLs include a hash of the contents, so a changed file results in a new URL. Your users will never have to clear their browser cache again.

Organize your application, your way

Cassette’s flexible configuration system lets you decide how to structure your assets. Use the simple, code-based API to define bundles by convention.

The bundle processing pipeline is fully customizable. It provides full control over how bundles are combined, minified and rendered.

Create cleaner code, faster

Use your favourite awesome languages - CoffeeScript, LESS and Sass. Cassette will compile these into JavaScript and CSS.

Automagic asset ordering

Don’t waste time maintaining that ever-growing file of scripts listed in the right order. Be explicit about each file's dependencies with handy reference comments, and let Cassette determine the correct order for you.

Alternatively, Cassette does offer a simple file format to explicitly order assets.

Simple “in-page” API

Reference the bundles your page view or partial requires using the simple Bundles helper class. Then tell Cassette where to render the HTML. It will generate all the script and link elements for you.

If you reference one bundle that requires another, Cassette knows to include both bundles in the generated HTML.

Easy Debugging & Production Performance

Debug your original JavaScript files - much easier than trying to debug a minified monster! Proper filenames and line numbers let you find and fix problems faster. In debug-mode Cassette puts each source asset into the page individually.

With a single configuration change for production deployment, Cassette will generate the optimized bundle includes instead. This requires absolutely no manual changes to your page source.

Manageable HTML Templates

Embedding HTML templates directly within a page is messy. Keeping each template in its own file makes projects much simpler to maintain. Let Cassette handle the embedding for you.

Cassette can pre-compile the HTML templates into JavaScript for even faster client-side load times.