<?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: Mooml 1.2.3 &#8211; Bye, bye, with()</title>
	<atom:link href="http://dev.enekoalonso.com/2010/04/28/mooml-1-2-3-bye-bye-with/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.enekoalonso.com/2010/04/28/mooml-1-2-3-bye-bye-with/</link>
	<description>having fun with code</description>
	<lastBuildDate>Thu, 15 Sep 2011 22:21:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Jean-Nicolas</title>
		<link>http://dev.enekoalonso.com/2010/04/28/mooml-1-2-3-bye-bye-with/comment-page-1/#comment-38566</link>
		<dc:creator>Jean-Nicolas</dc:creator>
		<pubDate>Wed, 04 May 2011 19:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=517#comment-38566</guid>
		<description>I am trying to called a method, but for some reason it does not work: http://jsfiddle.net/FEfpq/

The code is self-explanatory.

Thanks in advance for any help...</description>
		<content:encoded><![CDATA[<p>I am trying to called a method, but for some reason it does not work: <a href="http://jsfiddle.net/FEfpq/" rel="nofollow">http://jsfiddle.net/FEfpq/</a></p>
<p>The code is self-explanatory.</p>
<p>Thanks in advance for any help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eneko Alonso</title>
		<link>http://dev.enekoalonso.com/2010/04/28/mooml-1-2-3-bye-bye-with/comment-page-1/#comment-27556</link>
		<dc:creator>Eneko Alonso</dc:creator>
		<pubDate>Mon, 06 Sep 2010 19:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=517#comment-27556</guid>
		<description>Sure, but you cannot do it in root of the template. You have to do it wrapping it inside a dom element like a div, span, etc:
&lt;pre lang=&quot;javascript&quot;&gt;
Mooml.register(&#039;template1&#039;, function(data) {
  div(
    Mooml.render(&#039;template2&#039;, data)
  );
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Sure, but you cannot do it in root of the template. You have to do it wrapping it inside a dom element like a div, span, etc:</p>
<pre lang="javascript">
Mooml.register('template1', function(data) {
  div(
    Mooml.render('template2', data)
  );
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://dev.enekoalonso.com/2010/04/28/mooml-1-2-3-bye-bye-with/comment-page-1/#comment-27552</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 06 Sep 2010 17:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=517#comment-27552</guid>
		<description>IS it possible to have template use other templates?
eg.
Mooml.register(&#039;Login&#039;, function(data) {
	Mooml.render(data),
	form(
		ul(
			li(
				label({&#039;for&#039;:&#039;UID&#039;},data.lbluserid),
				input({&#039;id&#039;:&#039;UID&#039;,&#039;type&#039;:&#039;text&#039;,&#039;maxlength&#039;:&#039;8&#039;,&#039;size&#039;:&#039;20&#039;}),
				label(&#039;*&#039;)
			),
			li(
				label({&#039;for&#039;:&#039;pw&#039;},data.lblpw),
				input({&#039;id&#039;:&#039;pw&#039;,&#039;type&#039;:&#039;password&#039;,&#039;maxlength&#039;:&#039;20&#039;,&#039;size&#039;:&#039;20&#039;}),
				label(&#039;*&#039;)
			)			
		),
		div(), // for messages
		input({&#039;id&#039;:&#039;login&#039;,&#039;type&#039;:&#039;button&#039;,&#039;value&#039;:&#039;Login&#039;})
	);
});</description>
		<content:encoded><![CDATA[<p>IS it possible to have template use other templates?<br />
eg.<br />
Mooml.register(&#8216;Login&#8217;, function(data) {<br />
	Mooml.render(data),<br />
	form(<br />
		ul(<br />
			li(<br />
				label({&#8216;for&#8217;:'UID&#8217;},data.lbluserid),<br />
				input({&#8216;id&#8217;:'UID&#8217;,'type&#8217;:'text&#8217;,'maxlength&#8217;:&#8217;8&#8242;,&#8217;size&#8217;:&#8217;20&#8242;}),<br />
				label(&#8216;*&#8217;)<br />
			),<br />
			li(<br />
				label({&#8216;for&#8217;:'pw&#8217;},data.lblpw),<br />
				input({&#8216;id&#8217;:'pw&#8217;,'type&#8217;:'password&#8217;,'maxlength&#8217;:&#8217;20&#8242;,&#8217;size&#8217;:&#8217;20&#8242;}),<br />
				label(&#8216;*&#8217;)<br />
			)<br />
		),<br />
		div(), // for messages<br />
		input({&#8216;id&#8217;:'login&#8217;,'type&#8217;:'button&#8217;,'value&#8217;:'Login&#8217;})<br />
	);<br />
});</p>
]]></content:encoded>
	</item>
</channel>
</rss>

