0.0.31 • Published 9 years ago

webservicer v0.0.31

Weekly downloads
6
License
-
Repository
github
Last release
9 years ago

webservice

webservice 是一套单页面级的路由框架,包含了soyie soyie-http-router等框架或组件,能够实现复杂路由功能,类似于nodejs的express框架。它的优点在于我们可以处理复杂逻辑的页面路由,通过自定义路由回调,轻松实现页面逻辑。

install

nap install --save webservicer

usage

var soyie = require('soyie');
var webservice = require('webservicer');
var app = webview(soyie);
app.active(function(req, res){
	res.render('home');
});
soyie.ready(function(){
	app.listen('envirs-cms');
});

app

app 是一个webservice初始化的实例对象,可以认为是一个HTTP服务引擎。

app api

0.0.31

9 years ago

0.0.30

9 years ago

0.0.29

9 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26

9 years ago

0.0.25

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.16

9 years ago

0.0.14

9 years ago

0.0.11

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago