Tag Archives: mootools
Javascript console in the terminal (command line)
I’ve been looking for a command line Javascript console for a while. I have even thought of creating my own one, some hybrid between my fake Linux terminal and JSFiddle.net. Lately, I’ve been working with node.js lately on a little project just for fun. Never before I had done server side Javascript and it looks [...]
MooTools Core for Server and Mobile Development
One of the best things of MooTools is that it is very modular, from the core itself. This means you don’t need to include all core elements in your projects if you don’t want or don’t need some modules. For example, you may not want to include Array or Function, if you don’t need any [...]
Mooml 1.2.3 – Bye, bye, with()
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 [...]
Mooml 1.1 – No more eval(), say Hi to Mooml.Template and Mooml.Templates
Mooml 1.1 has been finally released today and made available to everybody via Github and Mootools Forge plugin repository. What is new in Mooml 1.1 Mooml 1.1 has a lot of new features, but these are worth to mention: No more eval() Mooml.Template Mooml.Templates Pass functions as arguments to template functions References to elements with [...]
More updates to Mooml coming soon
I’ve been very busy lately, both with spaniards.es and at work. Too much stuff to do. Nevertheless, I’ve been working lately on a version of Mooml that does not rely on with/eval. The problem of using eval (which has bad reputation but is used every time we parse JSON -unless you use this- or load [...]
Having fun with Mooml & Twitter
Mooml is a templating engine for Mootools. With it, you can create HTML from Javascript using a very clean syntax. Plus, it is extremely useful when you have to generate repeating elements, since Mooml automatically renders arrays of data multiple times. Let’s see an example. Searching Twitter Nowadays there are a lot of APIs out [...]
Mooml.globalize(): Mooml template functions going global
Since version 1.0.9, Mooml includes a new feature: globalize. It maybe handy for some websites to globalize all the Mooml template functions (div, a, p, span…) to the window object scope, so they can be used anywhere in the code without the need of defining or evaluating a template. For example, in normal Mootools code [...]
Detecting when CSS gets loaded by the browser with Mootools and Asset.css
Asset.css claims to have an onload event in Mootools documentation, but sadly, not all browsers support this feature. Even worse, browsers like Chrome seem to support the event, but never fire it. After some research and testing at work, we have come up with a solution that overrides Asset.css to detect when CSS gets loaded [...]
Finally: Singletons, the Mootools way
I have been using for a while the “new new Class” syntax to create singletons on the projects I am working on. This is for many reasons, but specially because I didn’t like other solutions like Class.Mutators, Class.Oclude or extending a plain object with $extend(). Now, after discussing a little bit on the Mootools email [...]
