Coder Social home page Coder Social logo

quickweb's Introduction

v0.4版已迁移至这里:https://github.com/quickweb/quickweb

如有问题,请联系 @老雷

v0.3.5更新 2012-4-20

  • 增加了response.mvcRender()方法

该方法使用TinyLiquid模板引擎进行渲染,需要在应用配置文件中开启该选项:enableMVC:true

在应用配置文件中,设置MVCModels选项可用于注册渲染时获取各数据的方法,详见TinyLiquid模板:https://github.com/leizongmin/tinyliquid

  • 为应用增加middleware目录,该目录中每个文件为一个中间件,代码格式:

    module.exports = function (req, res, next) { // 处理... return next(); };

中间件名称:假如文件名为login.js,则其名称为login,如为test/login.js则为test.login 是用中间件:

应用全局中间件:在config.js中输出 exports.middleWare = ['中间件1', '中间件2'];

控制器局部中间件:在code目录里面的文件中,输出 exports.use = ['中间件1', '中间件2'];

  • 控制器中的POST|PUT方法的post complete事件被取消,原来如下形式的代码:

    exports.post = function (req, res) { req.on('post complete', function (req, res) { // ...处理 }); };

将被改为如下形式:

exports.post = function (req, res) {
  // ...处理
};

如需要在post complete事件前进行处理,可注册中间件来解决。

  • 增加基于redis的Session存储引擎。

quickweb's People

Contributors

leizongmin avatar blakmatrix avatar

Stargazers

 avatar futurepost avatar weizhengwei avatar  avatar ikapta avatar FE YU avatar Sunrise avatar terryliu avatar  avatar  avatar Ruibin avatar Cataway avatar Jerry Bao avatar Kround Man avatar  avatar  avatar  avatar jon avatar skypp avatar  avatar  avatar Jeffrey avatar ispxin avatar  avatar Kitsion avatar py avatar node-migrator-bot avatar xiaoniudu avatar  avatar 吃货 avatar fangs avatar  avatar  avatar mqli avatar  avatar spout avatar Thomas Zhou avatar  avatar StuPig avatar Jon Zhu avatar lemonhall avatar Kinogam avatar 秋 avatar xx1024 avatar  avatar blessdyb avatar VoidXing avatar thinkphper avatar  avatar monkeytao avatar  avatar hpf1908 avatar 刘巍峰 avatar Tim.Leon(Fan Liang) avatar cppgohan avatar Zhiming Jiang avatar Mr.Q avatar arden avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar  avatar

quickweb's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.