Meryl-extras is a project mainly written in ..., based on the MIT license.
Meryl extras project
This project provides extra plugins and extensions to the Meryl project.
> npm install meryl-extras
This example demonstrates a basic file server based on static file plugin
// app.js
var meryl = require('meryl'),
merylex = require('meryl-extras');
var staticfile = merylex('staticfile');
require('http').createServer(
meryl.p('GET /<filepath>', staticfile()).cgi()
).listen(3000);
This one demonstrates the usage of eco template engine
// app.js
var meryl = require('meryl'),
merylex = require('meryl-extras'),
eco = require('eco');
var generictemplate = merylex('generictemplate');
require('http').createServer(
meryl
.x('render', generictemplate({templateExt: 'eco', renderFunc: eco.render }))
.h('GET /', function() {
this.render('home', {people: ['bob', 'alice', 'jane', 'meryl']});
}
)
.cgi()
).listen(3000);
Plugins:
Extensions:
Plugins
Extensions
Please don't forget to help this project by contibuting. Reservations cost no pennies ;)
The MIT License