<?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: jQote2 &#8211; Javascript templating revamped</title>
	<atom:link href="http://aefxx.com/jquery-plugins/jqote2/feed/" rel="self" type="application/rss+xml" />
	<link>http://aefxx.com/jquery-plugins/jqote2/</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 08:55:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: vbarrier</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-942</link>
		<dc:creator>vbarrier</dc:creator>
		<pubDate>Tue, 19 Apr 2011 16:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-942</guid>
		<description>Hello,

I didn&#039;t find any solution to &quot;embed&quot; javascript inside the template. This javascript must be evaluated right after the insertion (not at the templating time so not in 

The main goal is to add logic associated to the template in an app that use a lot of ajax call etc...

So I made a simple hack :

add any javascript inside : 


 alert(&#039;hello world&#039;) 


and in jQote2 I have added this : 


return this.each(function() {

                //custom begin
                str = str.replace(//g, &#039;&lt;script type=&quot;text/javascript&quot;&gt;&#039;);
                str = str.replace(//g, &#039;&lt;/script&gt;&#039;);
                //custom end

                var dom = $$(str);
                $(this)[method](dom);

                ( dom[0].nodeType === 3 ?
                    $(this) : dom ).trigger(&#039;jqote.&#039;+name, [dom, regexp]);
            });


What do you think of this ?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I didn&#8217;t find any solution to &#8220;embed&#8221; javascript inside the template. This javascript must be evaluated right after the insertion (not at the templating time so not in </p>
<p>The main goal is to add logic associated to the template in an app that use a lot of ajax call etc&#8230;</p>
<p>So I made a simple hack :</p>
<p>add any javascript inside : </p>
<p> alert(&#8216;hello world&#8217;) </p>
<p>and in jQote2 I have added this : </p>
<p>return this.each(function() {</p>
<p>                //custom begin<br />
                str = str.replace(//g, &#8216;&lt;script type=&#8221;text/javascript&#8221;&gt;&#8217;);<br />
                str = str.replace(//g, &#8216;&lt;/script&gt;&#8217;);<br />
                //custom end</p>
<p>                var dom = $$(str);<br />
                $(this)[method](dom);</p>
<p>                ( dom[0].nodeType === 3 ?<br />
                    $(this) : dom ).trigger(&#8216;jqote.&#8217;+name, [dom, regexp]);<br />
            });</p>
<p>What do you think of this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aefxx</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-932</link>
		<dc:creator>aefxx</dc:creator>
		<pubDate>Mon, 07 Mar 2011 08:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-932</guid>
		<description>@Steve Lacey

Hi Steve,
I&#039;m sorry you couldn&#039;t figure out how to exactely define/deploy a template or its compiled lambda. I guess you must have overlooked the hint on this site&#039;s top where I refer anyone not familiar with jQote to its introductory post: &lt;a href=&quot;http://aefxx.com/jquery-plugins/jqote/&quot; rel=&quot;nofollow&quot;&gt;jQote – client-side templating&lt;/a&gt;. There you will see a very basic example on how to write a template and induce its conversion with some sample data.

Once you outgrow the idea of embedding your templates within the HTML sources, you should make use of jQote2&#039;s ability to precompile templates into plain JavaScript functions which you may use just like their hand-written brethren. As soon as I can spare some time I will write down a tutorial that deals with both, basic embedded templating and a more mature approach (aka build system). So, please bear with me.

All the best,
aefxx</description>
		<content:encoded><![CDATA[<p>@Steve Lacey</p>
<p>Hi Steve,<br />
I&#8217;m sorry you couldn&#8217;t figure out how to exactely define/deploy a template or its compiled lambda. I guess you must have overlooked the hint on this site&#8217;s top where I refer anyone not familiar with jQote to its introductory post: <a href="http://aefxx.com/jquery-plugins/jqote/" rel="nofollow">jQote – client-side templating</a>. There you will see a very basic example on how to write a template and induce its conversion with some sample data.</p>
<p>Once you outgrow the idea of embedding your templates within the HTML sources, you should make use of jQote2&#8217;s ability to precompile templates into plain JavaScript functions which you may use just like their hand-written brethren. As soon as I can spare some time I will write down a tutorial that deals with both, basic embedded templating and a more mature approach (aka build system). So, please bear with me.</p>
<p>All the best,<br />
aefxx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Lacey</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-931</link>
		<dc:creator>Steve Lacey</dc:creator>
		<pubDate>Sat, 05 Mar 2011 19:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-931</guid>
		<description>Only just came across jQuote from a StackOverflow answer, grasped that quickly, easily, noticed related article &#039;jQuote2&#039;. Spent 10 minutes reading through this page and the API reference... have no idea how you&#039;re telling me I should even define a template... can you provide some basic examples? All I need is a non-shit way of marking up an object&#039;s properties..

Saw you said they no longer need be in markup, yet all the examples in the reference seem to imply they should be?

Ta,
Steve</description>
		<content:encoded><![CDATA[<p>Only just came across jQuote from a StackOverflow answer, grasped that quickly, easily, noticed related article &#8216;jQuote2&#8242;. Spent 10 minutes reading through this page and the API reference&#8230; have no idea how you&#8217;re telling me I should even define a template&#8230; can you provide some basic examples? All I need is a non-shit way of marking up an object&#8217;s properties..</p>
<p>Saw you said they no longer need be in markup, yet all the examples in the reference seem to imply they should be?</p>
<p>Ta,<br />
Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aefxx</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-923</link>
		<dc:creator>aefxx</dc:creator>
		<pubDate>Sat, 05 Feb 2011 18:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-923</guid>
		<description>@Aaron

Hehe, nope, it&#039;s not a typo. jQote stands for:&lt;strong&gt; jQuery&#039;s oven-ready templating engine&lt;/strong&gt;.</description>
		<content:encoded><![CDATA[<p>@Aaron</p>
<p>Hehe, nope, it&#8217;s not a typo. jQote stands for:<strong> jQuery&#8217;s oven-ready templating engine</strong>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron S</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-917</link>
		<dc:creator>Aaron S</dc:creator>
		<pubDate>Tue, 18 Jan 2011 01:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-917</guid>
		<description>Nice work with jQote! Less than an hour to get it set up with our web app, and now all our popup dialogs are unobtrusive templates :)

Aside: Am I the only one in two revisions of this code to notice the typo in the name jQote? Any particular reason for spelling it that way?

Aaron</description>
		<content:encoded><![CDATA[<p>Nice work with jQote! Less than an hour to get it set up with our web app, and now all our popup dialogs are unobtrusive templates :)</p>
<p>Aside: Am I the only one in two revisions of this code to notice the typo in the name jQote? Any particular reason for spelling it that way?</p>
<p>Aaron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron S</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-916</link>
		<dc:creator>Aaron S</dc:creator>
		<pubDate>Mon, 10 Jan 2011 06:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-916</guid>
		<description>Am I the only one in two editions of this code who has noticed the incorrect spelling of the word quote? :P Any particular reason for that choice of spelling?

Nice library though - and the speed benchmarks are very impressive.</description>
		<content:encoded><![CDATA[<p>Am I the only one in two editions of this code who has noticed the incorrect spelling of the word quote? :P Any particular reason for that choice of spelling?</p>
<p>Nice library though &#8211; and the speed benchmarks are very impressive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ub</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-911</link>
		<dc:creator>ub</dc:creator>
		<pubDate>Fri, 03 Dec 2010 17:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-911</guid>
		<description>Hi

Do you have a exemple of template to make a table with header and value

How to make the for each or other solution

thank&#039;s</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Do you have a exemple of template to make a table with header and value</p>
<p>How to make the for each or other solution</p>
<p>thank&#8217;s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-910</link>
		<dc:creator>J</dc:creator>
		<pubDate>Thu, 02 Dec 2010 18:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-910</guid>
		<description>Cool!

I haven&#039;t seen any examples of complex forms being built with this. Has anyone explored what it would take to i.e. add a row, some part of a whole template, to accommodate a new element in the form&#039;s bound a object&#039;s array? The template would include templating the element indexes of arrays and could be properly serialized for POSTing. But I&#039;m having trouble thinking it all through. The goal is InfoPath-like functionality. (I&#039;m aware of the various existing infopath features and infopath alternatives.)</description>
		<content:encoded><![CDATA[<p>Cool!</p>
<p>I haven&#8217;t seen any examples of complex forms being built with this. Has anyone explored what it would take to i.e. add a row, some part of a whole template, to accommodate a new element in the form&#8217;s bound a object&#8217;s array? The template would include templating the element indexes of arrays and could be properly serialized for POSTing. But I&#8217;m having trouble thinking it all through. The goal is InfoPath-like functionality. (I&#8217;m aware of the various existing infopath features and infopath alternatives.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aefxx</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-907</link>
		<dc:creator>aefxx</dc:creator>
		<pubDate>Tue, 02 Nov 2010 06:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-907</guid>
		<description>@shamus

Thanks for the note. I should write more tests, I suppose?</description>
		<content:encoded><![CDATA[<p>@shamus</p>
<p>Thanks for the note. I should write more tests, I suppose?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shamus</title>
		<link>http://aefxx.com/jquery-plugins/jqote2/comment-page-1/#comment-906</link>
		<dc:creator>shamus</dc:creator>
		<pubDate>Mon, 01 Nov 2010 18:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=272#comment-906</guid>
		<description>There is a reference error in jqotenc() in v0.9.7. Line 174 should be &quot;return str.toString()&quot;, not &quot;return s.toString()&quot;. After fixing, encoding works great... thank you!</description>
		<content:encoded><![CDATA[<p>There is a reference error in jqotenc() in v0.9.7. Line 174 should be &#8220;return str.toString()&#8221;, not &#8220;return s.toString()&#8221;. After fixing, encoding works great&#8230; thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

