<?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 API reference</title>
	<atom:link href="http://aefxx.com/api/jqote2-reference/feed/" rel="self" type="application/rss+xml" />
	<link>http://aefxx.com/api/jqote2-reference/</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: David Votrubec</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-1204</link>
		<dc:creator>David Votrubec</dc:creator>
		<pubDate>Wed, 01 Feb 2012 08:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-1204</guid>
		<description>Hi, 
I wrote a comment yesterday but it seems that it disappeared...
So I try to write it again :)

Thanks for the jQote2 templates. Its great. But few days ago I ran into problems: I have some complex json object which contain another json objects which may contain another objects. For example: School -&gt; classes -&gt; students. 

I need to render template for the parent object (eg &quot;school&quot;), then inside it render template for nested objects (eg &quot;school class&quot;), then for every nested object I need to render template for its nested objects (if there are any). 

I have no idea how to call template from inside another template. 

Tell me please if it is possible and if so then be so kind and provide me some basic examples.

Thank you very much.

David Votrubec</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I wrote a comment yesterday but it seems that it disappeared&#8230;<br />
So I try to write it again :)</p>
<p>Thanks for the jQote2 templates. Its great. But few days ago I ran into problems: I have some complex json object which contain another json objects which may contain another objects. For example: School -&gt; classes -&gt; students. </p>
<p>I need to render template for the parent object (eg &#8220;school&#8221;), then inside it render template for nested objects (eg &#8220;school class&#8221;), then for every nested object I need to render template for its nested objects (if there are any). </p>
<p>I have no idea how to call template from inside another template. </p>
<p>Tell me please if it is possible and if so then be so kind and provide me some basic examples.</p>
<p>Thank you very much.</p>
<p>David Votrubec</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aefxx</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-1121</link>
		<dc:creator>aefxx</dc:creator>
		<pubDate>Thu, 24 Nov 2011 09:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-1121</guid>
		<description>rishimaharaj,

I&#039;ve replied to your question on stackoverflow. Please see &lt;a href=&quot;http://stackoverflow.com/questions/8067909/how-to-pass-extra-variables-and-parameters-to-jqote2/8254717#8254717&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>rishimaharaj,</p>
<p>I&#8217;ve replied to your question on stackoverflow. Please see <a href="http://stackoverflow.com/questions/8067909/how-to-pass-extra-variables-and-parameters-to-jqote2/8254717#8254717" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rishi</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-1083</link>
		<dc:creator>Rishi</dc:creator>
		<pubDate>Thu, 10 Nov 2011 14:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-1083</guid>
		<description>Can you please take a look at these two questions on StackOverflow and put any answers you may have!
http://stackoverflow.com/questions/8067909/how-to-pass-extra-variables-and-parameters-to-jqote2

http://stackoverflow.com/questions/7690453/json-element-is-null-resulting-in-uncaught-typeerror-unknown-message-template

Many thanks!</description>
		<content:encoded><![CDATA[<p>Can you please take a look at these two questions on StackOverflow and put any answers you may have!<br />
<a href="http://stackoverflow.com/questions/8067909/how-to-pass-extra-variables-and-parameters-to-jqote2" rel="nofollow">http://stackoverflow.com/questions/8067909/how-to-pass-extra-variables-and-parameters-to-jqote2</a></p>
<p><a href="http://stackoverflow.com/questions/7690453/json-element-is-null-resulting-in-uncaught-typeerror-unknown-message-template" rel="nofollow">http://stackoverflow.com/questions/7690453/json-element-is-null-resulting-in-uncaught-typeerror-unknown-message-template</a></p>
<p>Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ville</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-1034</link>
		<dc:creator>Ville</dc:creator>
		<pubDate>Sun, 02 Oct 2011 05:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-1034</guid>
		<description>* The sentence above:

This is because the template data is retrieved as innerHTML which jQuery automatically escapes so that, for instance, becomes 

should&#039;ve read (without WP&#039;s censorship):

This is because the template data is retrieved as innerHTML which jQuery automatically escapes so that, for instance,  becomes &amp; l t ; %= this.name % &amp; g t ;

(added some spaces to prevent auto-editing :-).

Also, the unescapeHTML is on jsfiddle at http://jsfiddle.net/vwal/kFAtd/</description>
		<content:encoded><![CDATA[<p>* The sentence above:</p>
<p>This is because the template data is retrieved as innerHTML which jQuery automatically escapes so that, for instance, becomes </p>
<p>should&#8217;ve read (without WP&#8217;s censorship):</p>
<p>This is because the template data is retrieved as innerHTML which jQuery automatically escapes so that, for instance,  becomes &amp; l t ; %= this.name % &amp; g t ;</p>
<p>(added some spaces to prevent auto-editing :-).</p>
<p>Also, the unescapeHTML is on jsfiddle at <a href="http://jsfiddle.net/vwal/kFAtd/" rel="nofollow">http://jsfiddle.net/vwal/kFAtd/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ville</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-1033</link>
		<dc:creator>Ville</dc:creator>
		<pubDate>Sun, 02 Oct 2011 04:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-1033</guid>
		<description>Hi aefxx, and thanks for an excellent template engine! I&#039;m just starting a Backbone project or two, and will most likely use jQote2 as the template engine.

As one of the requirements of these projects is to be better able to organize code, I also wanted to be able to save templates into &#039;collections&#039; (several templates per file). In your response to Brad on June 24th, 2010, you gave a very good example on how to go about accomplishing just that. As I&#039;ve been testing such setup tonight, I noticed that when jqotec is applied against the templates filtered into an array from the file, the templates fail to compile. This is because the template data is retrieved as innerHTML which jQuery automatically escapes so that, for instance,  becomes &lt;%= this.name %&gt;

To avoid this I converted an old Prototype escape plugin to jQuery plugin and applied  it to the template content retrieved from the file before it reaches jqotec, like this:

templates[this.id] = $.jqotec($.unescapeHTML(this.innerHTML));

After doing this, everything&#039;s working perfectly! Perhaps there a more elegant way to go about this, but this does the trick.

Here&#039;s the simple unescapeHTML plugin code:

(function($) {

    $.fn.unescapeHTML = function(string) {
        return $.unescapeHTML(string);
    }

    $.unescapeHTML = function(str) {
        var str = str.replace(/\&amp;lt\;/g, &#039;&#039;).replace(/\&amp;quot\;/g, &#039;&quot;&#039;).replace(/\&amp;amp\;/g, &quot;&amp;&quot;);
        return str;
    }
})(jQuery);</description>
		<content:encoded><![CDATA[<p>Hi aefxx, and thanks for an excellent template engine! I&#8217;m just starting a Backbone project or two, and will most likely use jQote2 as the template engine.</p>
<p>As one of the requirements of these projects is to be better able to organize code, I also wanted to be able to save templates into &#8216;collections&#8217; (several templates per file). In your response to Brad on June 24th, 2010, you gave a very good example on how to go about accomplishing just that. As I&#8217;ve been testing such setup tonight, I noticed that when jqotec is applied against the templates filtered into an array from the file, the templates fail to compile. This is because the template data is retrieved as innerHTML which jQuery automatically escapes so that, for instance,  becomes &lt;%= this.name %&gt;</p>
<p>To avoid this I converted an old Prototype escape plugin to jQuery plugin and applied  it to the template content retrieved from the file before it reaches jqotec, like this:</p>
<p>templates[this.id] = $.jqotec($.unescapeHTML(this.innerHTML));</p>
<p>After doing this, everything&#8217;s working perfectly! Perhaps there a more elegant way to go about this, but this does the trick.</p>
<p>Here&#8217;s the simple unescapeHTML plugin code:</p>
<p>(function($) {</p>
<p>    $.fn.unescapeHTML = function(string) {<br />
        return $.unescapeHTML(string);<br />
    }</p>
<p>    $.unescapeHTML = function(str) {<br />
        var str = str.replace(/\&amp;lt\;/g, &#8221;).replace(/\&amp;quot\;/g, &#8216;&#8221;&#8216;).replace(/\&amp;amp\;/g, &#8220;&amp;&#8221;);<br />
        return str;<br />
    }<br />
})(jQuery);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maksim P</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-953</link>
		<dc:creator>Maksim P</dc:creator>
		<pubDate>Thu, 12 May 2011 22:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-953</guid>
		<description>sorry to bug you man, but getting a problem one of the other commenters had when trying to use get to pull in the template file.  it decodes the  and I can&#039;t figure out how to convert them back.  any ideas?

Thanks so much</description>
		<content:encoded><![CDATA[<p>sorry to bug you man, but getting a problem one of the other commenters had when trying to use get to pull in the template file.  it decodes the  and I can&#8217;t figure out how to convert them back.  any ideas?</p>
<p>Thanks so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maksim P</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-952</link>
		<dc:creator>Maksim P</dc:creator>
		<pubDate>Thu, 12 May 2011 20:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-952</guid>
		<description>and one more - is there any way to nest the templates?</description>
		<content:encoded><![CDATA[<p>and one more &#8211; is there any way to nest the templates?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maksim P</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-951</link>
		<dc:creator>Maksim P</dc:creator>
		<pubDate>Thu, 12 May 2011 19:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-951</guid>
		<description>Aefxx,

Dude, your plugin blows me away!! I&#039;m building a web app, and this will save soo much bandwith.  

Have a quick question for you though.  Can I trigger an event to re-render the template?  Say if a user is logged out and I need to display different things to him once he&#039;s logged out?  The pages in Jquery mobile never really refresh, it&#039;s mostly ajax, so that&#039;s why I need it.  Thanks!</description>
		<content:encoded><![CDATA[<p>Aefxx,</p>
<p>Dude, your plugin blows me away!! I&#8217;m building a web app, and this will save soo much bandwith.  </p>
<p>Have a quick question for you though.  Can I trigger an event to re-render the template?  Say if a user is logged out and I need to display different things to him once he&#8217;s logged out?  The pages in Jquery mobile never really refresh, it&#8217;s mostly ajax, so that&#8217;s why I need it.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vani</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-938</link>
		<dc:creator>Vani</dc:creator>
		<pubDate>Tue, 22 Mar 2011 18:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-938</guid>
		<description>Hi Aefxx,

Thank you so much for helping me out. It works perfect for me. I did quite a lot of research about  jQuery template engines before I decided to go with yours. It&#039;s very easy to learn, in fact  i was able to use it in my project with in 2 hours of  reading the API reference. And in 2 weeks i finished a major project  which was estimated for 4 weeks.

Great job and thanks again,
Vani</description>
		<content:encoded><![CDATA[<p>Hi Aefxx,</p>
<p>Thank you so much for helping me out. It works perfect for me. I did quite a lot of research about  jQuery template engines before I decided to go with yours. It&#8217;s very easy to learn, in fact  i was able to use it in my project with in 2 hours of  reading the API reference. And in 2 weeks i finished a major project  which was estimated for 4 weeks.</p>
<p>Great job and thanks again,<br />
Vani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://aefxx.com/api/jqote2-reference/comment-page-1/#comment-937</link>
		<dc:creator>david</dc:creator>
		<pubDate>Fri, 18 Mar 2011 23:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://aefxx.com/?p=359#comment-937</guid>
		<description>just fyi, I have tried the change mentioned above and it is so far working like a charm. 
sorry for the spam.</description>
		<content:encoded><![CDATA[<p>just fyi, I have tried the change mentioned above and it is so far working like a charm.<br />
sorry for the spam.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

