Using #DEBUG macros in spark

Posted by Quintin Par on Stack Overflow See other posts from Stack Overflow or by Quintin Par
Published on 2010-05-28T12:20:24Z Indexed on 2010/05/28 12:22 UTC
Read the original article Hit count: 212

I have some scripts which need to be included only in the release version. Stuff like google analytics, quantserve etc.

The typical way in asp.net mvc world is to wrap a

#if DEBUG
#endif

How do I do it the sparkish way. Like

<script if='x==5' type="text/javascript">

© Stack Overflow or respective owner

Related posts about .NET

Related posts about asp.net-mvc