Clack.Builder - Clack utility to build up from some Middleware and Application into one function.

SYNOPSIS

(builder  
 <clack.middleware.logger>  
 (<clack.middleware.static>  
  :path "/public/"  
  :root #p"/static-files/")  
 app) 

DESCRIPTION

Clack.Builder allows you to write middlewares inline. It builds up with calling wrap of middlewares sequencially and returns a function also as an Application.

The following example is:

(builder  
 <clack.middleware.logger>  
 (<clack.middleware.static>  
  :path "/public/"  
  :root #p"/static-files/")  
 app) 

same as below one.

(wrap (make-instance '<clack.middleware.logger>)  
      (wrap (make-instance '<clack.middleware.static>  
               :path "/public/"  
               :root #p"/static-files/")  
            app)) 

builder-lazy is almost same as builder, but it builds up every time when the Application calls.

AUTHOR

SEE ALSO

EXTERNAL SYMBOLS