1.0.8 • Published 8 years ago
jof v1.0.8
jof
:zap: Just one file :zap:
For quick prototyping write server and client code in a single file
example
var jof = require('jof')
jof({
initialize: (server) => {
// do something with http server
},
// browserify extra options
browserify: [],
routes: {
'/' : (opt, q, r) => {
r.end(jof.html(opt.client['/app.js']))
}
},
client: {
'/app.js' : () => {
alert('I will be browserified')
}
}
})