Normally Pleasant Mixture
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    mu2expresspublic

    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("engine");
    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);

    Keywords

    none

    install

    npm i mu2express

    Downloadsweekly downloads

    2

    version

    0.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar