<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ASP.NET MVC tip &#8211; Don&#8217;t use the Content or Scripts directories for view specific files</title>
	<atom:link href="http://www.lazycoder.com/weblog/2009/03/17/aspnet-mvc-tip-dont-use-the-content-or-scripts-directories-for-view-specific-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lazycoder.com/weblog/2009/03/17/aspnet-mvc-tip-dont-use-the-content-or-scripts-directories-for-view-specific-files/</link>
	<description></description>
	<lastBuildDate>Sun, 14 Mar 2010 19:34:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Derek Morrison</title>
		<link>http://www.lazycoder.com/weblog/2009/03/17/aspnet-mvc-tip-dont-use-the-content-or-scripts-directories-for-view-specific-files/comment-page-1/#comment-191899</link>
		<dc:creator>Derek Morrison</dc:creator>
		<pubDate>Fri, 05 Jun 2009 14:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1112#comment-191899</guid>
		<description>This sounds like a good idea, but when I tried to do it, I couldn&#039;t seem to access the JavaScript files stored alongside aspx pages in the Views folder. I&#039;m trying to diagnose it now, but I&#039;m thinking it&#039;s because routing is blocking a direct request for the .js file inside the views folder. Any ideas, anyone?</description>
		<content:encoded><![CDATA[<p>This sounds like a good idea, but when I tried to do it, I couldn&#8217;t seem to access the JavaScript files stored alongside aspx pages in the Views folder. I&#8217;m trying to diagnose it now, but I&#8217;m thinking it&#8217;s because routing is blocking a direct request for the .js file inside the views folder. Any ideas, anyone?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zihotki</title>
		<link>http://www.lazycoder.com/weblog/2009/03/17/aspnet-mvc-tip-dont-use-the-content-or-scripts-directories-for-view-specific-files/comment-page-1/#comment-189253</link>
		<dc:creator>zihotki</dc:creator>
		<pubDate>Fri, 20 Mar 2009 01:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1112#comment-189253</guid>
		<description>*typo*
..make calls to DB in views too</description>
		<content:encoded><![CDATA[<p>*typo*<br />
..make calls to DB in views too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zihotki</title>
		<link>http://www.lazycoder.com/weblog/2009/03/17/aspnet-mvc-tip-dont-use-the-content-or-scripts-directories-for-view-specific-files/comment-page-1/#comment-189252</link>
		<dc:creator>zihotki</dc:creator>
		<pubDate>Fri, 20 Mar 2009 01:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1112#comment-189252</guid>
		<description>This is some kind of Separation of Concerns. I prefer to store scripts in scripts folder, css and images in contents folder and c# code - in some other folders. But you can mix all of them - place views with controller and other related files in the same folder. And even you can easily use codebehind files and make calls to DB too.</description>
		<content:encoded><![CDATA[<p>This is some kind of Separation of Concerns. I prefer to store scripts in scripts folder, css and images in contents folder and c# code &#8211; in some other folders. But you can mix all of them &#8211; place views with controller and other related files in the same folder. And even you can easily use codebehind files and make calls to DB too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.lazycoder.com/weblog/2009/03/17/aspnet-mvc-tip-dont-use-the-content-or-scripts-directories-for-view-specific-files/comment-page-1/#comment-189205</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 17 Mar 2009 20:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1112#comment-189205</guid>
		<description>Glyn: There&#039;s nothing preventing you from concatenating your CSS and JS files either in a post-build step or server-side using a handler. In that case, it doesn&#039;t really matter where the files are physically.</description>
		<content:encoded><![CDATA[<p>Glyn: There&#8217;s nothing preventing you from concatenating your <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> and JS files either in a post-build step or server-side using a handler. In that case, it doesn&#8217;t really matter where the files are physically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glyn Darkin</title>
		<link>http://www.lazycoder.com/weblog/2009/03/17/aspnet-mvc-tip-dont-use-the-content-or-scripts-directories-for-view-specific-files/comment-page-1/#comment-189203</link>
		<dc:creator>Glyn Darkin</dc:creator>
		<pubDate>Tue, 17 Mar 2009 20:17:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1112#comment-189203</guid>
		<description>To increase performance you should be bundling your scripts and css into as few files as possible. This is to reduce calls from the client to the server and speed up page load time. Therefore splitting your files up is not the greatest idea.</description>
		<content:encoded><![CDATA[<p>To increase performance you should be bundling your scripts and css into as few files as possible. This is to reduce calls from the client to the server and speed up page load time. Therefore splitting your files up is not the greatest idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Veverka</title>
		<link>http://www.lazycoder.com/weblog/2009/03/17/aspnet-mvc-tip-dont-use-the-content-or-scripts-directories-for-view-specific-files/comment-page-1/#comment-189197</link>
		<dc:creator>Patrick Veverka</dc:creator>
		<pubDate>Tue, 17 Mar 2009 16:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1112#comment-189197</guid>
		<description>Hopefully this makes it through :)

While I think that’s an excellent idea for organization, I think that the Javascript Auto Include plugin for Rails does it up a little more elegantly. It creates a directory structure for you to place your JS files organized by view.

If only there were something similar for MVC :)

I put some explanatory code in my response: http://bit.ly/pR5Na</description>
		<content:encoded><![CDATA[<p>Hopefully this makes it through <img src='http://www.lazycoder.com/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>While I think that’s an excellent idea for organization, I think that the Javascript Auto Include plugin for Rails does it up a little more elegantly. It creates a directory structure for you to place your JS files organized by view.</p>
<p>If only there were something similar for MVC <img src='http://www.lazycoder.com/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I put some explanatory code in my response: <a href="http://bit.ly/pR5Na" rel="nofollow">http://bit.ly/pR5Na</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
