What is BabaJS BabaJS is an open source Javascript template engine/manager. The basic concept is: Template + Data = HTML Here is a simple example: <!– user template –> <div class="user"> <span>< %=data.userName%></span> < %IF data.hasPic %> <img src="<% return 'http://imgs.mydomain.com/'+ data.userPic; %/>" /> < %ELSE%> <span>Add User Pic</span> < %ENDIF%> <span>User Friends:</span> < % [...]
First of all I’m sorry that I haven’t wrote for a long time, I’ve been busy, but since I realized that is never going to change (at least not before the kids will move out of the house) I better continue write post even when I don’t have time. So I guess the post will [...]
Problog This post cover the following topics: Song of the post Code for testing Javascript engine Results Song of the Post – James Blackshaw – Cross I decided to combine my two favorite things – javascript and music. So I’ll try to add a song which either i listened to during the writing of the [...]
Problog This post cover the following topics: arguments object caller object callee object introduce a simple stack trace function for all browsers When i wad first introduced to the arguments object and its caller property i thought about all the cool things i can do with it (yes i’m a geek). What is arguments Object [...]
Problog This post cover the following topics: What is Firefox Profile Manager Setup a developer profile Tweak the browser for debug profile This post is either for new web developers or to advanced developers that keeps crashing their Firefox or have too much developing extensions that it affects their day-to-day browsing experience. I came across [...]