0.1.0 • Published 12 years ago

jadeBundler v0.1.0

Weekly downloads
4
License
-
Repository
github
Last release
12 years ago

JadeBundler

A lightweight server-side jade compilation framework

Example

require(['js/runtime', 'js/allViews'], function (runtime, allViews) {
  var view;

  // Iterate over views
  for(view in allViews) {

    // Create a container div
    var div = document.createElement('div');
    
    // Set its content to this invoked view function
    div.innerHTML = allViews[view]({'name': 'Fred'});

    // Append it to the body
    document.body.appendChild(div);
  }
});