<?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: Inline Prototype Templates</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2007/09/07/inline-prototype-templates/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2007/09/07/inline-prototype-templates/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2007/09/07/inline-prototype-templates/comment-page-1/#comment-44807</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Fri, 26 Oct 2007 19:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/09/07/inline-prototype-templates/#comment-44807</guid>
		<description>Giles,

WordPress (the blog engine) strips out HTML.  Can you repost your comment with the HTML escaped (use [] instead of angle brackets).</description>
		<content:encoded><![CDATA[<p>Giles,</p>
<p>WordPress (the blog engine) strips out HTML.  Can you repost your comment with the HTML escaped (use [] instead of angle brackets).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giles</title>
		<link>https://www.barneyb.com/barneyblog/2007/09/07/inline-prototype-templates/comment-page-1/#comment-44752</link>
		<dc:creator>giles</dc:creator>
		<pubDate>Fri, 26 Oct 2007 08:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/09/07/inline-prototype-templates/#comment-44752</guid>
		<description>Thanks for the article, raised some pretty interesting and useful points. 

I am trying to add an id to an element, and making it unique by adding an id I am getting elsewhere on the page:

// create the template
var myTemplate= new Template(&#039;&#039;);

// add the new mark up to the appropriate location
new Insertion.Bottom($(&#039;myContainerDiv&#039;), myTemplate.evaluate(myItem));

Unfortunately prototype adds a space before and after the item id, so I get:


Does anyone happen to know if there are any ways to prevent prototype adding the extra apaces?

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for the article, raised some pretty interesting and useful points. </p>
<p>I am trying to add an id to an element, and making it unique by adding an id I am getting elsewhere on the page:</p>
<p>// create the template<br />
var myTemplate= new Template(");</p>
<p>// add the new mark up to the appropriate location<br />
new Insertion.Bottom($('myContainerDiv'), myTemplate.evaluate(myItem));</p>
<p>Unfortunately prototype adds a space before and after the item id, so I get:</p>
<p>Does anyone happen to know if there are any ways to prevent prototype adding the extra apaces?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claude</title>
		<link>https://www.barneyb.com/barneyblog/2007/09/07/inline-prototype-templates/comment-page-1/#comment-36117</link>
		<dc:creator>Claude</dc:creator>
		<pubDate>Wed, 12 Sep 2007 19:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/09/07/inline-prototype-templates/#comment-36117</guid>
		<description>As an alternative you may want to take a look at &lt;a href=&quot;http://extjs.com/deploy/ext/docs/#output/Ext.Template.html&quot; rel=&quot;nofollow&quot;&gt;Ext.Template&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>As an alternative you may want to take a look at <a href="http://extjs.com/deploy/ext/docs/#output/Ext.Template.html" rel="nofollow">Ext.Template</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
