Skip to content

stanfeldman/mootools.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

MooTools 1.4.0 Server

For more information about mootools visit http://mootools.net MooTools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.

Mootools Server is a customized MooTools build without any component relative to browsers. Includes Class, Core and Native Extensions. Christoph Pojer have added wrapper and loader for node.js.

Installation

Usage

require("./mootools").apply(GLOBAL);

var Controller = new Class
({
	get: function(req, res) { not_found(); },
	
	post: function(req, res) { not_found(); },
	
	put: function(req, res) { not_found(); },
	
	del: function(req, res) { not_found(); },
	
	not_found: function()
	{
		res.writeHead(200, {'Content-Type': 'text/html'});
		res.end("404");
	}
});

var Controller1 = new Class
({
	Extends: controllers.Controller,
	
	get: function(req, res)
	{
		var result = "hello world!";
		res.writeHead(200, {'Content-Type': 'text/html'});
		res.end(result);
	}
});

About

MooTools latest server library as npm package for node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published