Skip to content

Instantly share code, notes, and snippets.

@robertmilne
Created May 26, 2011 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertmilne/993233 to your computer and use it in GitHub Desktop.
Save robertmilne/993233 to your computer and use it in GitHub Desktop.
# if (System.Diagnostics.Debugger.IsAttached) {
<render/>
# } else {
<cache expires="1200">
<content var="styles"><render/></content>
# Response.Write(new Microsoft.Ajax.Utilities.Minifier().MinifyStyleSheet(styles));
</cache>
# }
# if (System.Diagnostics.Debugger.IsAttached) {
<render/>
# } else {
<cache expires="1200">
<content var="script"><render/></content>
# Response.Write(new Microsoft.Ajax.Utilities.Minifier().MinifyJavaScript(script));
</cache>
# }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment