andrewdavey/cassette — Issue #196: Precompiled manifest breaks Html Rewriting
Author: hempels
Created: 2012-02-28 08:21:34+00:00
State: open

When a precompiledManifest is not specified and rewriteHtml is true, it is possible to reference additional script and style resources within a Partial (MVC Razor view engine.)

If you then specify a precompiledManifest, rendering the same partial within the same page will produce the following error:
**Cannot add a bundle reference. The bundles have already been rendered. Either move the reference before the render call, or set ICassetteApplication.IsHtmlRewritingEnabled to true in your Cassette configuration.**

I suspect the value is rewriteHtml is forced to false when a precompiledManifest is located, but it doesn't seem like there is a technical reason why it needs to be.