<?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: Dual-Side Templating for 2010</title>
	<atom:link href="http://ajaxian.com/archives/dual-side-templating-for-2010/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/dual-side-templating-for-2010</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: trav1m</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261422</link>
		<dc:creator>trav1m</dc:creator>
		<pubDate>Sat, 16 Feb 2008 18:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261422</guid>
		<description>c. 1998: Rhino
c. 1999: XSLT

We need to come up with a name for the common Ajax pattern in which developers have been doing something for a long time, and then someone gives it a name and writes an article about it.</description>
		<content:encoded><![CDATA[<p>c. 1998: Rhino<br />
c. 1999: XSLT</p>
<p>We need to come up with a name for the common Ajax pattern in which developers have been doing something for a long time, and then someone gives it a name and writes an article about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CiDS</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261420</link>
		<dc:creator>CiDS</dc:creator>
		<pubDate>Sat, 16 Feb 2008 14:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261420</guid>
		<description>What&#039;s with the &quot;Secure string interpolation&quot; from Google. Won`t it fit the needs for templating in javascript</description>
		<content:encoded><![CDATA[<p>What&#8217;s with the &#8220;Secure string interpolation&#8221; from Google. Won`t it fit the needs for templating in javascript</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jqs</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261414</link>
		<dc:creator>jqs</dc:creator>
		<pubDate>Fri, 15 Feb 2008 22:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261414</guid>
		<description>The future is definitely now!
I&#039;m using a single template on both the server and client side to create content boxes for user upload-able content. The server passes the template as a hidden div for use on the client side after using it to render  any content previously saved during the session.
This is an awesome technique and works very well.</description>
		<content:encoded><![CDATA[<p>The future is definitely now!<br />
I&#8217;m using a single template on both the server and client side to create content boxes for user upload-able content. The server passes the template as a hidden div for use on the client side after using it to render  any content previously saved during the session.<br />
This is an awesome technique and works very well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mundizzle</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261412</link>
		<dc:creator>mundizzle</dc:creator>
		<pubDate>Fri, 15 Feb 2008 21:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261412</guid>
		<description>Why not use with XML/XSLT? It&#039;s web standard technologies and a reality right now using Sarissa.js on A-grade browsers. We use this all the time and really gives us clean separation of concerns as well as nice modular HTML.

Also I believe FREJA comes with some sort of fallback server-side XSLT processing for PHP as well.

I don&#039;t really understand why this technique isn&#039;t more prevalent...</description>
		<content:encoded><![CDATA[<p>Why not use with XML/XSLT? It&#8217;s web standard technologies and a reality right now using Sarissa.js on A-grade browsers. We use this all the time and really gives us clean separation of concerns as well as nice modular HTML.</p>
<p>Also I believe FREJA comes with some sort of fallback server-side XSLT processing for PHP as well.</p>
<p>I don&#8217;t really understand why this technique isn&#8217;t more prevalent&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pottedmeat</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261410</link>
		<dc:creator>pottedmeat</dc:creator>
		<pubDate>Fri, 15 Feb 2008 21:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261410</guid>
		<description>Posted on the article (but still awaiting moderation):

If you visit my website, itâ€™s actually running dual-side templating using the DojoX DTL implementation that Roberto spoke of above. (The server-generated version is at http://someclosure.com/text/)

And because a language like DTL includes inheritance and other forms of â€œfilling in the blanksâ€ using other templates, arbitrarily complex page mutations can occur.

Your thoughts on using the server to render most of the page is definitely interesting. It would be interesting to write a custom tag for the DTL server-side implementation that worked something along the lines of {% updates %}{% myTags %}{% endUpdates %} that would basically render the content between the two tags, and then duplicate the template code again below it.

But I only can see this type of half-rendering being more efficient the first time the site is visited. For example, when I make return visits to my website, the page loads in a snap because the only data that needs to be loaded is the text of the page.

It would be interesting to look into whether some sort of session-based detection could be done so that their first visit gave them the server-rendered page, but subsequent visits gave them just the raw text.

And one last thought, it would be fairly trivial to take a page thatâ€™s been rendered using the server-side version of the language, and once the JS templating is loaded, render it â€œon top ofâ€ the DOM, adopting tags as they match. In this way, youâ€™d be able to have a much more pleasant visual experience (no waiting for JS, no page flicker) as well as having the power of templating.</description>
		<content:encoded><![CDATA[<p>Posted on the article (but still awaiting moderation):</p>
<p>If you visit my website, itâ€™s actually running dual-side templating using the DojoX DTL implementation that Roberto spoke of above. (The server-generated version is at <a href="http://someclosure.com/text/" rel="nofollow">http://someclosure.com/text/</a>)</p>
<p>And because a language like DTL includes inheritance and other forms of â€œfilling in the blanksâ€ using other templates, arbitrarily complex page mutations can occur.</p>
<p>Your thoughts on using the server to render most of the page is definitely interesting. It would be interesting to write a custom tag for the DTL server-side implementation that worked something along the lines of {% updates %}{% myTags %}{% endUpdates %} that would basically render the content between the two tags, and then duplicate the template code again below it.</p>
<p>But I only can see this type of half-rendering being more efficient the first time the site is visited. For example, when I make return visits to my website, the page loads in a snap because the only data that needs to be loaded is the text of the page.</p>
<p>It would be interesting to look into whether some sort of session-based detection could be done so that their first visit gave them the server-rendered page, but subsequent visits gave them just the raw text.</p>
<p>And one last thought, it would be fairly trivial to take a page thatâ€™s been rendered using the server-side version of the language, and once the JS templating is loaded, render it â€œon top ofâ€ the DOM, adopting tags as they match. In this way, youâ€™d be able to have a much more pleasant visual experience (no waiting for JS, no page flicker) as well as having the power of templating.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: balupton</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261399</link>
		<dc:creator>balupton</dc:creator>
		<pubDate>Fri, 15 Feb 2008 17:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261399</guid>
		<description>I share the same vision, I&#039;ve made my own post on the subject here talking about current and future applications:
http://www.balupton.com/blogs/dev?title=jaxer_the_silver_bullet
Worth checking out is the JSmarty (Client Side Templating):
http://code.google.com/p/jsmarty/
Which is a port of Smarty (Server Side Templating):
http://www.smarty.net/crashcourse.php</description>
		<content:encoded><![CDATA[<p>I share the same vision, I&#8217;ve made my own post on the subject here talking about current and future applications:<br />
<a href="http://www.balupton.com/blogs/dev?title=jaxer_the_silver_bullet" rel="nofollow">http://www.balupton.com/blogs/dev?title=jaxer_the_silver_bullet</a><br />
Worth checking out is the JSmarty (Client Side Templating):<br />
<a href="http://code.google.com/p/jsmarty/" rel="nofollow">http://code.google.com/p/jsmarty/</a><br />
Which is a port of Smarty (Server Side Templating):<br />
<a href="http://www.smarty.net/crashcourse.php" rel="nofollow">http://www.smarty.net/crashcourse.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathany</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261392</link>
		<dc:creator>nathany</dc:creator>
		<pubDate>Fri, 15 Feb 2008 15:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261392</guid>
		<description>Server-side JavaScript seems like the only reasonable way to achieve this, even having the same API in two code bases isn&#039;t great. On the other hand, the Ruby on Rails approach of returning HTML snippets isn&#039;t a bad one... you need to save the comment on the blog post anyhow.</description>
		<content:encoded><![CDATA[<p>Server-side JavaScript seems like the only reasonable way to achieve this, even having the same API in two code bases isn&#8217;t great. On the other hand, the Ruby on Rails approach of returning HTML snippets isn&#8217;t a bad one&#8230; you need to save the comment on the blog post anyhow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Mahemoff</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261389</link>
		<dc:creator>Michael Mahemoff</dc:creator>
		<pubDate>Fri, 15 Feb 2008 14:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261389</guid>
		<description>@rubypond I don&#039;t get how lowpro/scriptaculous do templating or am *I* missing something...in this article, I&#039;m talking about templating like PHP/JSP  tags.

@moschel Thanks for pointing it out. It makes sense; Steve Yen&#039;s trimpath was one of the very early JS templating languages and given that it&#039;s incorporating server-side JS, I could see it.</description>
		<content:encoded><![CDATA[<p>@rubypond I don&#8217;t get how lowpro/scriptaculous do templating or am *I* missing something&#8230;in this article, I&#8217;m talking about templating like PHP/JSP  tags.</p>
<p>@moschel Thanks for pointing it out. It makes sense; Steve Yen&#8217;s trimpath was one of the very early JS templating languages and given that it&#8217;s incorporating server-side JS, I could see it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu \'p01\' Henri</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261387</link>
		<dc:creator>Mathieu \'p01\' Henri</dc:creator>
		<pubDate>Fri, 15 Feb 2008 12:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261387</guid>
		<description>The future is now.</description>
		<content:encoded><![CDATA[<p>The future is now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moschel</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261386</link>
		<dc:creator>moschel</dc:creator>
		<pubDate>Fri, 15 Feb 2008 12:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261386</guid>
		<description>Steve Yen experiments with creating the same template for both server and client with his TrimJunction framework.</description>
		<content:encoded><![CDATA[<p>Steve Yen experiments with creating the same template for both server and client with his TrimJunction framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fighne</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261385</link>
		<dc:creator>fighne</dc:creator>
		<pubDate>Fri, 15 Feb 2008 11:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261385</guid>
		<description>me thinks Ajaxer too!</description>
		<content:encoded><![CDATA[<p>me thinks Ajaxer too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubypond</title>
		<link>http://ajaxian.com/archives/dual-side-templating-for-2010/comment-page-1#comment-261384</link>
		<dc:creator>rubypond</dc:creator>
		<pubDate>Fri, 15 Feb 2008 11:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3337#comment-261384</guid>
		<description>Am I missing something something or isn&#039;t dual side templating happening already? Isn&#039;t this exactly what frameworks like lowpro and scriptaculous help achieve (and in rails, integrating with RJS)?

I think a 2010 estimate for something that is already in production use is anything but bullish.</description>
		<content:encoded><![CDATA[<p>Am I missing something something or isn&#8217;t dual side templating happening already? Isn&#8217;t this exactly what frameworks like lowpro and scriptaculous help achieve (and in rails, integrating with RJS)?</p>
<p>I think a 2010 estimate for something that is already in production use is anything but bullish.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

