4. INTRODUCTION:
EXPRESS(2/2)
!Express is a routing and middleware web framework with minimal
functionality of its own: An Express application is essentially a series of
middleware calls.
!Middleware is a function with access to the request(req), the response
object(res) and the next middleware in the application’s request-
response cycle, commonly denoted by a variable named next.
!Middleware can:
-Execute any code.
-Make changes to the request and the response objects.
-End the request-response cycle.
-Call the next middleware in the stack.
Reference: http://expressjs.com/guide/using-middleware.html
14. 頁面通知(2/2)
Ÿ connect-flash
The flash is a special area of the session used for storing
messages. Messages are written to the flash and cleared after being
displayed to the user. The flash is typically used in combination with
redirects, ensuring that the message is available to the next page that
is to be rendered.
Reference: https://github.com/jaredhanson/connect-flash