<?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: Render Your Model With Client Side jQuery Templates Instead of ASP.NET MVC Partial Views</title>
	<atom:link href="http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/</link>
	<description>Making stuff up about web development since last week.</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:29:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Felix</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-17935</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Sun, 17 Jul 2011 16:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-17935</guid>
		<description>Ashish (and others that will run into similar problem):
The change in MVC 3 is the introduction of HtmlString and the fact that strings are automatically mangled. You need to change helper method:

public static HtmlString ToJson(this object value) {
    return new HtmlString((new JavaScriptSerializer()).Serialize(value));
}</description>
		<content:encoded><![CDATA[<p>Ashish (and others that will run into similar problem):<br />
The change in MVC 3 is the introduction of HtmlString and the fact that strings are automatically mangled. You need to change helper method:</p>
<p>public static HtmlString ToJson(this object value) {<br />
    return new HtmlString((new JavaScriptSerializer()).Serialize(value));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Riggs</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-17796</link>
		<dc:creator>Nick Riggs</dc:creator>
		<pubDate>Sat, 16 Jul 2011 14:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-17796</guid>
		<description>@teebot: JsonResult will result in a string containing the Json. But it won&#039;t pass that string to the view.</description>
		<content:encoded><![CDATA[<p>@teebot: JsonResult will result in a string containing the Json. But it won&#8217;t pass that string to the view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teebot</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-17790</link>
		<dc:creator>teebot</dc:creator>
		<pubDate>Sat, 16 Jul 2011 11:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-17790</guid>
		<description>Isn&#039;t there a way to return a JsonResult directly to the view using this.Json(people) from the controller?</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t there a way to return a JsonResult directly to the view using this.Json(people) from the controller?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-2463</link>
		<dc:creator>Ashish</dc:creator>
		<pubDate>Tue, 21 Dec 2010 11:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-2463</guid>
		<description>Issue resolved. I modified my code

@(Model.ToJson());

to

@(Html.Raw(Json.Encode(Model)));

Works like a charm.</description>
		<content:encoded><![CDATA[<p>Issue resolved. I modified my code</p>
<p>@(Model.ToJson());</p>
<p>to</p>
<p>@(Html.Raw(Json.Encode(Model)));</p>
<p>Works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-2462</link>
		<dc:creator>Ashish</dc:creator>
		<pubDate>Tue, 21 Dec 2010 11:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-2462</guid>
		<description>I tried to use the above code but with Razor syntax. However I am getting a JavaScript error at the line:

@(Model.ToJson());

The error displays &quot;Message: Expected identifier, string or number Line: 64 Char: 18 Code: 0 URI: localhost/MyWebApplication/&quot;. Any idea.</description>
		<content:encoded><![CDATA[<p>I tried to use the above code but with Razor syntax. However I am getting a JavaScript error at the line:</p>
<p>@(Model.ToJson());</p>
<p>The error displays &#8220;Message: Expected identifier, string or number Line: 64 Char: 18 Code: 0 URI: localhost/MyWebApplication/&#8221;. Any idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tigger-Roo</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-664</link>
		<dc:creator>Tigger-Roo</dc:creator>
		<pubDate>Fri, 02 Jul 2010 04:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-664</guid>
		<description>Works beautifully.</description>
		<content:encoded><![CDATA[<p>Works beautifully.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Riggs</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-516</link>
		<dc:creator>Nick Riggs</dc:creator>
		<pubDate>Mon, 31 May 2010 20:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-516</guid>
		<description>@Alex. Yeah, this is a method I use for web applications - not so much for content-based web sites.</description>
		<content:encoded><![CDATA[<p>@Alex. Yeah, this is a method I use for web applications &#8211; not so much for content-based web sites.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-514</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 31 May 2010 14:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-514</guid>
		<description>This will work only for content that is not important for google indexing since google crawler cannot run javascript.</description>
		<content:encoded><![CDATA[<p>This will work only for content that is not important for google indexing since google crawler cannot run javascript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Riggs</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-481</link>
		<dc:creator>Nick Riggs</dc:creator>
		<pubDate>Thu, 27 May 2010 13:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-481</guid>
		<description>Not sure of a date – but I think it won’t be long. jQuery and Microsoft are committed to working together on this and have separate forks of the code on github. I am personally using Microsoft’s proposed solution in a production app. Also check out Microsoft’s proposed data linking for jQuery – it’s pretty nice.</description>
		<content:encoded><![CDATA[<p>Not sure of a date – but I think it won’t be long. jQuery and Microsoft are committed to working together on this and have separate forks of the code on github. I am personally using Microsoft’s proposed solution in a production app. Also check out Microsoft’s proposed data linking for jQuery – it’s pretty nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Battaile Fauber</title>
		<link>http://www.nickriggs.com/posts/render-your-model-with-client-side-jquery-templates-instead-of-asp-net-mvc-partial-views/comment-page-1/#comment-480</link>
		<dc:creator>Battaile Fauber</dc:creator>
		<pubDate>Thu, 27 May 2010 13:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.nickriggs.com/?p=239#comment-480</guid>
		<description>Good stuff, Nick.  Any idea how close the proposed templating solution is to becoming firm/finalized?</description>
		<content:encoded><![CDATA[<p>Good stuff, Nick.  Any idea how close the proposed templating solution is to becoming firm/finalized?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

