'PHP' Tag

  • BabaJS – Javascript Template Engine

    April 26, 2011

    What is BabaJS BabaJS is an open source Javascript template engine/manager. Read the full and updated documentation at github 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 [...]

 
Powered by Wordpress and MySQL. Theme by openark.org