gusto

0.0.4b • Public • Published

Gusto

...is an MVC framework written in LiveScript for Node. It's geared towards flexibility without sacrificing simplicity, and at a mere ~500loc it's lightweight too. It's released under the MIT Licence, so hack away. ##Sample ###controllers/site.ls

{Controller,action} = require \gusto/lib/mvc/controller
{get} = require \gusto/lib/server/router

exports.site = Controller {
	index: get "home", action (self)->
		self.render greet:"world!"
}

###views/site/index.els

Hello #{greet}

###run.ls

Gusto = require \gusto
app = Gusto.defaults!
app.listen 8001
$ livescript run.ls &
LOG	5174 Listening on *:8001
$ curl http://localhost/home
Hello world!

Readme

Keywords

none

Package Sidebar

Install

npm i gusto

Weekly Downloads

1

Version

0.0.4b

License

none

Last publish

Collaborators

  • quarterto