Mikael's blog

A developers sixth time trying to maintain a blog

Posts tagged with #commonjs
Architecture in Javascript - Modules
About a week ago I wrote about turning client side JavaScript into CommonJS modules. The scoping of variables in CommonJS makes this easy, but what if we wanted to do it the other way around? In CommonJS, modules are scoped by file and all public me...
written on November 24, 2011 at 12:14 by Mikael Lofjärd
The power of CommonJS
A few days ago when I was putting my posts into CouchDB, instead of relying on a static HTML file, I also implemented templating with Mustache. Mustache is small, easy to use and has almost no advanced features. It's power lies in the vast amount of ...
written on November 16, 2011 at 23:44 by Mikael Lofjärd