How to run Total.js without installation?
function main() { | |
F.route('/', function() { | |
this.plain('HOMEPAGE'); | |
}); | |
// debug (development mode), release (production mode), test (testing mode) | |
F.http('debug'); | |
} | |
require('http').get('http://modules.totaljs.com/latest/total.js', function(res) { | |
var buffer = new Buffer(0); | |
res.on('data', (b) => buffer = Buffer.concat([buffer, b])); | |
res.on('end', () => main(eval(buffer.toString('utf8')))); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment