livewire

0.1.0 • Public • Published

#Livewire is a routing library for Node.js written in LiveScript. It ships with a bare minimum configuration, and hooks to extend it how you will.

##Installation

npm install livewire

##Usage

require! livewire
.GET "/" ->"hello world"

require! http .create-server livewire.app .listen 8000
$ curl http://localhost:8000
hello world

##Extending

class AwesomeRouter extends livewire.Router
	@supports (instanceof Awesome)
	match:   -> it is @awesome
	extract: -> super @awesome

	(method,@awesome,handler)->
		super method
		@handlers = [] ++ handler

##Licence MIT.

©2012-2013 Matt Brennan

Readme

Keywords

none

Package Sidebar

Install

npm i livewire@0.1.0

Version

0.1.0

License

none

Last publish

Collaborators

  • quarterto