Skip to content

jessemartin/JadeBundler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
  }
});

About

A lightweight server-side jade compilation framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published