Mooml 1.1 was the first version of Mooml that didn’t rely on eval(), a javascript function that causes lot’s of problems when not used properly, but that also prevent minimizers and compilers like Closure to generate valid code.
The new Mooml 1.2.3 release also gets rid of with(), which will no longer be used to render Mooml templates. Instead, templates are prepared when they get registered, so all template tag functions (div(), span(), p()) get replaced by calls to the Mooml engine. Although this means there will be a performance hit when registering templates, it also means templates will render faster. As a plus, template parameter names will no longer conflict with template tag function names. Thus, you can now have a template with a parameter named ‘div’ and the template wont fail rendering.
Download: http://mootools.net/forge/p/mooml
Source: http://github.com/eneko/mooml

IS it possible to have template use other templates?
eg.
Mooml.register(‘Login’, function(data) {
Mooml.render(data),
form(
ul(
li(
label({‘for’:'UID’},data.lbluserid),
input({‘id’:'UID’,'type’:'text’,'maxlength’:’8′,’size’:’20′}),
label(‘*’)
),
li(
label({‘for’:'pw’},data.lblpw),
input({‘id’:'pw’,'type’:'password’,'maxlength’:’20′,’size’:’20′}),
label(‘*’)
)
),
div(), // for messages
input({‘id’:'login’,'type’:'button’,'value’:'Login’})
);
});
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:
Mooml.register('template1', function(data) { div( Mooml.render('template2', data) ); }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…