<?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: Test-Driving Backbone Views With JQuery Templates, The Jasmine Gem, and Jasmine-JQuery</title>
	<atom:link href="http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/</link>
	<description>Better Than Yesterday</description>
	<lastBuildDate>Fri, 17 May 2013 03:30:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/#comment-2042</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Fri, 16 Dec 2011 12:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=539#comment-2042</guid>
		<description>i&#039;ve used symbolic links for this, as well. it works well in *nix based systems (osx, linux, etc). when sharing code with windows users, though, they have to set up the link with a tool that doesn&#039;t come directly with windows. tradeoffs... but it&#039;s definitely a good option</description>
		<content:encoded><![CDATA[<p>i&#8217;ve used symbolic links for this, as well. it works well in *nix based systems (osx, linux, etc). when sharing code with windows users, though, they have to set up the link with a tool that doesn&#8217;t come directly with windows. tradeoffs&#8230; but it&#8217;s definitely a good option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/#comment-2039</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 16 Dec 2011 10:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=539#comment-2039</guid>
		<description>if 
cd spec/javascripts/
must
ln -s ../../app/views/ ./fixtures</description>
		<content:encoded><![CDATA[<p>if<br />
cd spec/javascripts/<br />
must<br />
ln -s ../../app/views/ ./fixtures</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/#comment-1898</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 21 Oct 2011 00:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=539#comment-1898</guid>
		<description>You might want to update the reference to .call() as it is now .bind().</description>
		<content:encoded><![CDATA[<p>You might want to update the reference to .call() as it is now .bind().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/#comment-1839</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 29 Sep 2011 22:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=539#comment-1839</guid>
		<description>Not sure loading fixtures would work when using rake jasmine and MVC: since rake jasmine uses WEBrick and ASP.NET MVC another server, you&#039;ll get a cross-origin error when attempting to load the MVC fixture.
I suppose there is a way around it though, need to have a look at it.</description>
		<content:encoded><![CDATA[<p>Not sure loading fixtures would work when using rake jasmine and MVC: since rake jasmine uses WEBrick and ASP.NET MVC another server, you&#8217;ll get a cross-origin error when attempting to load the MVC fixture.<br />
I suppose there is a way around it though, need to have a look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/#comment-1831</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Wed, 28 Sep 2011 12:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=539#comment-1831</guid>
		<description>nice! my solution well in sinatra, but i can see how this would be better if you&#039;re in rails 3.1. thanks for the info! i&#039;ll definitely look into this when i get on to a rails 3.1 project :)</description>
		<content:encoded><![CDATA[<p>nice! my solution well in sinatra, but i can see how this would be better if you&#8217;re in rails 3.1. thanks for the info! i&#8217;ll definitely look into this when i get on to a rails 3.1 project :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Oxley</title>
		<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/#comment-1830</link>
		<dc:creator>Tim Oxley</dc:creator>
		<pubDate>Wed, 28 Sep 2011 07:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=539#comment-1830</guid>
		<description>I tried this method of importing templates as fixtures, but didn&#039;t really like it. Another avenue for template loading which I prefer, is to use Sprockets from Rails 3.1.


Sprockets (https://github.com/sstephenson/sprockets) has specific handling for javascript templates. To use your template &#039;partials&#039; in your tests just require the template and use the JST array:

    //= require templates/my_template
    $(&quot;#content&quot;).html(JST[&quot;templates/my_template&quot;](someDatas));

…which is also the exact same way you require and utilize templates in your production JS code. It also feels nice and clean.

Also, I wanted to use Handlebars as my template language of choice and thus required a Handlebars engine to Rails 3.1: https://github.com/leshill/handlebars_assets</description>
		<content:encoded><![CDATA[<p>I tried this method of importing templates as fixtures, but didn&#8217;t really like it. Another avenue for template loading which I prefer, is to use Sprockets from Rails 3.1.</p>
<p>Sprockets (<a href="https://github.com/sstephenson/sprockets" rel="nofollow">https://github.com/sstephenson/sprockets</a>) has specific handling for javascript templates. To use your template &#8216;partials&#8217; in your tests just require the template and use the JST array:</p>
<p>    //= require templates/my_template<br />
    $(&#8220;#content&#8221;).html(JST["templates/my_template"](someDatas));</p>
<p>…which is also the exact same way you require and utilize templates in your production JS code. It also feels nice and clean.</p>
<p>Also, I wanted to use Handlebars as my template language of choice and thus required a Handlebars engine to Rails 3.1: https://github.com/leshill/handlebars_assets</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/#comment-1794</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 07 Sep 2011 18:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=539#comment-1794</guid>
		<description>Re: template loading, you might be interested in this followup post to the one you linked, if you haven&#039;t seen it: http://encosia.com/jquery-templates-composite-rendering-and-remote-loading/

That way you minimize the number of HTTP requests necessary to pull down logically related groups of templates, but you also don&#039;t have to burden the initial page load with templates that aren&#039;t used immediately. Of course, for templates that *are* used immediately as the page loads, I agree that it does make sense to go ahead and embed those in the view.</description>
		<content:encoded><![CDATA[<p>Re: template loading, you might be interested in this followup post to the one you linked, if you haven&#8217;t seen it: http://encosia.com/jquery-templates-composite-rendering-and-remote-loading/</p>
<p>That way you minimize the number of HTTP requests necessary to pull down logically related groups of templates, but you also don&#8217;t have to burden the initial page load with templates that aren&#8217;t used immediately. Of course, for templates that *are* used immediately as the page loads, I agree that it does make sense to go ahead and embed those in the view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/#comment-1793</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 06 Sep 2011 17:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=539#comment-1793</guid>
		<description>http://lostechies.com/johnteague/2010/06/28/unit-testing-your-mvc-views-with-qunit/ if you ever need to do it in MVC.  It&#039;s a bit old school now and should be easier with the newer view engines.</description>
		<content:encoded><![CDATA[<p><a href="http://lostechies.com/johnteague/2010/06/28/unit-testing-your-mvc-views-with-qunit/" rel="nofollow">http://lostechies.com/johnteague/2010/06/28/unit-testing-your-mvc-views-with-qunit/</a> if you ever need to do it in MVC.  It&#8217;s a bit old school now and should be easier with the newer view engines.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
