andrewdavey/cassette — pull request #146 by tomdenny (2012-01-26 06:43:14+00:00)
Title: HtmlAttribute Functionality added to bundle

The bundle supports the HtmlAttribute property and can be set using an object in much the same fashion that MVC HtmlHelpers work. ```bundle.HtmlAttributes = new { @class = "myClass", async = "async" }```

I made a few decisions that I'd like to call out in case you have a difference of opinion on them:

1) Lazy load the HtmlAttributeDictionary: My thinking here is that HtmlAttributes won't be used in the majority of cases. No sense keeping a Dictionary object around for no reason.

2) External script reference with fallback does not check to make sure the user hasn't done something odd like put a async="async" attribute on the external reference -- causing the fallback to likely execute too.

Thanks for the opportunity.
-Tom