andrewdavey/cassette — pull request #302 by willholley (2012-08-21 11:26:14+00:00)
Title: Fix for duplicate resource references when there are interdependencies between different bundle types

This situation occurs when you have e.g. a Knockout template which references script or stylesheet bundles. Previously, the scripts / stylesheets where getting included multiple times on the page because the BundleCollection was only resolving the dependency graph within the scope of the base type of the bundle.

This commit resolves dependencies between all base types and preserves the existing behaviour of grouping bundles by type generally.

It also includes a minor fix to HtmlTemplateBundle to support the test case where you have a template bundle based on a per-file strategy.