Skip to content
Express render function for the mu2 mustache library.
JavaScript
Find file
Latest commit 4f205ce @TiddoLangerak Merge pull request #1 from tapsboy/master
Thanks! Didn't notice that.
Failed to load latest commit information.
README.md Update README.md
mu2Express.js First commit
package.json Added the package.json file to the reposirtory

README.md

mu2Express

mu2Express is a small node module with an express template engine function for the mu2 mustache render module.

Example:

var mu2Express = require("mu2Express");
var express = require("express");
var app = express();
app.engine('mustache', mu2Express.engine);
app.set('view engine', 'mustache');
app.set('views', __dirname + '/Views');

app.get('/', function(req, res) {
    //Renders the Views/index.mustache file with the view {'test': 'somevalue'} using the mu2 engine
    res.render('index', {
        'locals' : {
            'test' : 'somevalue'
            }
        });
    });
app.listen(8080);
Something went wrong with that request. Please try again.