0.0.4b • Published 12 years ago

gusto v0.0.4b

Weekly downloads
1
License
-
Repository
github
Last release
12 years ago

Gusto

...is an MVC framework written in Coco 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.co

{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.eco

Hello #{greet}

###run.co

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

12 years ago

0.0.4a

12 years ago

0.0.3

12 years ago

0.0.2b

12 years ago

0.0.2a

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago