<?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: Adventures in Opera Unite</title>
	<atom:link href="http://michaelodden.com/development/adventures-in-opera-unite/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelodden.com/development/adventures-in-opera-unite/</link>
	<description>Unlimited views, cleverness and love</description>
	<lastBuildDate>Wed, 15 Jul 2009 18:01:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Opera Unite: Convenient tips and snippets for developers &#124; Unlimited Edition</title>
		<link>http://michaelodden.com/development/adventures-in-opera-unite/comment-page-1/#comment-1918</link>
		<dc:creator>Opera Unite: Convenient tips and snippets for developers &#124; Unlimited Edition</dc:creator>
		<pubDate>Sat, 04 Jul 2009 19:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://michaelodden.com/?p=267#comment-1918</guid>
		<description>[...] at the bottom of this post (template.js) if you want to allow variables in the expressions. See my previous Unite-post for [...]</description>
		<content:encoded><![CDATA[<p>[...] at the bottom of this post (template.js) if you want to allow variables in the expressions. See my previous Unite-post for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: António Afonso</title>
		<link>http://michaelodden.com/development/adventures-in-opera-unite/comment-page-1/#comment-1903</link>
		<dc:creator>António Afonso</dc:creator>
		<pubDate>Wed, 01 Jul 2009 13:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://michaelodden.com/?p=267#comment-1903</guid>
		<description>We&#039;re still discussing how to deliver libraries :)

Yes, you are right about the static file delivery. What you can also do, is to put all your static files inside a specifc directory, for instance static/, then you just need to check if the request is for some file under that directory and closeAndRedispatch.</description>
		<content:encoded><![CDATA[<p>We&#8217;re still discussing how to deliver libraries <img src='http://michaelodden.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Yes, you are right about the static file delivery. What you can also do, is to put all your static files inside a specifc directory, for instance static/, then you just need to check if the request is for some file under that directory and closeAndRedispatch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michaelo</title>
		<link>http://michaelodden.com/development/adventures-in-opera-unite/comment-page-1/#comment-1900</link>
		<dc:creator>michaelo</dc:creator>
		<pubDate>Tue, 30 Jun 2009 08:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://michaelodden.com/?p=267#comment-1900</guid>
		<description>@António

Ok, I see - that does of course make perfect sense. Looking forward to your next release! Do you have, or are you going to have, a sentraliced place for all Opera-libraries? (I can&#039;t seem to find any as of now)

Regarding the _request event handler:
That&#039;s something to keep in mind.

Let&#039;s now say I want to dispatch to the static content as long as there exists a matching file, and otherwise call &quot;_request&quot;-event - I had to create a function which used fileio and try to open the file, catch any errors, and then call closeAndRedispatch() only if successfully open. I&#039;ve read through the documentation but can&#039;t seem to find any sleeker way - what do you think?

Regarding the import-bug:
Great! I really appreciate the quick feedback and follow-up.</description>
		<content:encoded><![CDATA[<p>@António</p>
<p>Ok, I see &#8211; that does of course make perfect sense. Looking forward to your next release! Do you have, or are you going to have, a sentraliced place for all Opera-libraries? (I can&#8217;t seem to find any as of now)</p>
<p>Regarding the _request event handler:<br />
That&#8217;s something to keep in mind.</p>
<p>Let&#8217;s now say I want to dispatch to the static content as long as there exists a matching file, and otherwise call &#8220;_request&#8221;-event &#8211; I had to create a function which used fileio and try to open the file, catch any errors, and then call closeAndRedispatch() only if successfully open. I&#8217;ve read through the documentation but can&#8217;t seem to find any sleeker way &#8211; what do you think?</p>
<p>Regarding the import-bug:<br />
Great! I really appreciate the quick feedback and follow-up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: António Afonso</title>
		<link>http://michaelodden.com/development/adventures-in-opera-unite/comment-page-1/#comment-1898</link>
		<dc:creator>António Afonso</dc:creator>
		<pubDate>Mon, 29 Jun 2009 09:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://michaelodden.com/?p=267#comment-1898</guid>
		<description>michaelo:

&quot;will there be any side-effects as you know by switching?&quot;
Depends on your code actually...  this way if you have a data-list each {{}} inside it will be intact and only parsed by the parseDataAttributes function (but I would say that in normal conditions you won&#039;t get any problem).
I will change this in the future so you don&#039;t have to worry about that (right now the fillValues is getting -all- {{}} elements, doesn&#039;t stop at a data-list for instance)

Regarding arve&#039;s comment about the _request event handler, keep in mind that after listening to this event static files -won&#039;t- be served automatically anymore, you&#039;ll have to explicitly response.closeAndRedispatch() for that to happen.

PS: already fixed the “Imported files through the templater can’t be empty” in our internal version, you can patch this by adding &quot;if( !nodes ) { return; }&quot; before the &quot;if ( nodes.length )&quot; on the importTemplate function.</description>
		<content:encoded><![CDATA[<p>michaelo:</p>
<p>&#8220;will there be any side-effects as you know by switching?&#8221;<br />
Depends on your code actually&#8230;  this way if you have a data-list each {{}} inside it will be intact and only parsed by the parseDataAttributes function (but I would say that in normal conditions you won&#8217;t get any problem).<br />
I will change this in the future so you don&#8217;t have to worry about that (right now the fillValues is getting -all- {{}} elements, doesn&#8217;t stop at a data-list for instance)</p>
<p>Regarding arve&#8217;s comment about the _request event handler, keep in mind that after listening to this event static files -won&#8217;t- be served automatically anymore, you&#8217;ll have to explicitly response.closeAndRedispatch() for that to happen.</p>
<p>PS: already fixed the “Imported files through the templater can’t be empty” in our internal version, you can patch this by adding &#8220;if( !nodes ) { return; }&#8221; before the &#8220;if ( nodes.length )&#8221; on the importTemplate function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michaelo</title>
		<link>http://michaelodden.com/development/adventures-in-opera-unite/comment-page-1/#comment-1891</link>
		<dc:creator>michaelo</dc:creator>
		<pubDate>Thu, 25 Jun 2009 09:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://michaelodden.com/?p=267#comment-1891</guid>
		<description>Hey Arve,

That&#039;s a good tip indeed - I didn&#039;t think of that kind of use for it (just CSS and JS etc). As far as I can see this apply to the public_html-folder. Anywhere else? I did a quick test with the fileio but I assume it&#039;s only through the app-specific JS you can work with that - right?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hey Arve,</p>
<p>That&#8217;s a good tip indeed &#8211; I didn&#8217;t think of that kind of use for it (just <acronym title="Cascading Style Sheets">CSS</acronym> and <acronym title="JavaScript">JS</acronym> etc). As far as I can see this apply to the public_html-folder. Anywhere else? I did a quick test with the fileio but I assume it&#8217;s only through the app-specific <acronym title="JavaScript">JS</acronym> you can work with that &#8211; right?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michaelo</title>
		<link>http://michaelodden.com/development/adventures-in-opera-unite/comment-page-1/#comment-1890</link>
		<dc:creator>michaelo</dc:creator>
		<pubDate>Thu, 25 Jun 2009 08:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://michaelodden.com/?p=267#comment-1890</guid>
		<description>Hey António,

Thanks for your comment. Ah, I see - I hadn&#039;t tested using variables in standard attributes which, turned out, worked great as it was.
Thanks for the tip which worked perfectly.

Is there any reasons to keep the order as it was originally - read: will there be any side-effects as you know by switching?</description>
		<content:encoded><![CDATA[<p>Hey António,</p>
<p>Thanks for your comment. Ah, I see &#8211; I hadn&#8217;t tested using variables in standard attributes which, turned out, worked great as it was.<br />
Thanks for the tip which worked perfectly.</p>
<p>Is there any reasons to keep the order as it was originally &#8211; read: will there be any side-effects as you know by switching?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: António Afonso</title>
		<link>http://michaelodden.com/development/adventures-in-opera-unite/comment-page-1/#comment-1888</link>
		<dc:creator>António Afonso</dc:creator>
		<pubDate>Wed, 24 Jun 2009 21:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://michaelodden.com/?p=267#comment-1888</guid>
		<description>Hi there,

&quot;The templater doesn’t currently seem to allow variables in attributes&quot;:
The &quot;patch&quot; you&#039;re looking for is switching this.fillValues(data) with this.parseDataAttributes(data) on the this.parse(data) function, which will make the variables being parsed before all those data attributes.

&quot;Imported files through the templater can’t be empty&quot;
This, however, is a bug.</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>&#8220;The templater doesn’t currently seem to allow variables in attributes&#8221;:<br />
The &#8220;patch&#8221; you&#8217;re looking for is switching this.fillValues(data) with this.parseDataAttributes(data) on the this.parse(data) function, which will make the variables being parsed before all those data attributes.</p>
<p>&#8220;Imported files through the templater can’t be empty&#8221;<br />
This, however, is a bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arve</title>
		<link>http://michaelodden.com/development/adventures-in-opera-unite/comment-page-1/#comment-1887</link>
		<dc:creator>Arve</dc:creator>
		<pubDate>Wed, 24 Jun 2009 21:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://michaelodden.com/?p=267#comment-1887</guid>
		<description>Just a quick correction: You don&#039;t neccessarily have to register an event listener for every URL you want to be addressable in your app.  If you have shared a folder for making available, and the path matches, the static file will be served, if no handler picks it up.

Additionally, there is a catch-all request handler you can listen to, &#039;_request&#039;, which is dispatched after the more specific request.</description>
		<content:encoded><![CDATA[<p>Just a quick correction: You don&#8217;t neccessarily have to register an event listener for every <acronym title="Uniform Resource Locator">URL</acronym> you want to be addressable in your app.  If you have shared a folder for making available, and the path matches, the static file will be served, if no handler picks it up.</p>
<p>Additionally, there is a catch-all request handler you can listen to, &#8216;_request&#8217;, which is dispatched after the more specific request.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
