andrewdavey/cassette — pull request #200 by thecontrarycat (2012-02-28 17:33:23+00:00)
Title: Conditional Comments around InlineScripts

I have updated InlineScriptBundle.cs by copying some of the render code from ScriptBunderHtmlRenderer. This allows for conditional comments for IE to be placed around inline scripts added through Bundles.AddInlineScript().

e.g. Bundles.AddInlineScript("var ie7Below = true;", "head", b => b.Condition = "lte IE 7");

will produce