lib/app.js
function renderTmpl (path, vars, callback) {
    fs.readFile(path, 'utf8', function (err, file) {
        if (err) {
            return callback(err);
        }
        var out = file.replace(/\{\{([a-z]+)\}\}/ig, function (all, name) {
            return vars[name];
        });
        callback(null, out);
    });
}
function renderTmpl (path, vars, callback) {
    fs.readFile(path, 'utf8', function (err, file) {
        if (err) {
            return callback(err);
        }
        var out = file.replace(/\{\{([a-z]+)\}\}/ig, function (all, name) {
            return vars[name];
        });
        callback(null, out);
    });
}
function renderTmpl ( path , vars , callback ) { fs . readFile ( path , 'utf8' , function ( err , file ) { if ( err ) { return callback ( err ) ; } var out = file . replace ( / \{\{([a-z]+)\}\} / ig , function ( all , name ) { return vars [ name ] ; } ) ; callback ( null , out ) ; } ) ; }
Poor-man's mustache
Poor - man s mustache