Clack.Middleware.Conditional - Conditional wrapper for Clack middleware.

SYNOPSIS

(builder  
 (:condition (lambda (env)  
               (scan "WebKit" (getf env :http-user-agent)))  
  :builder '<clack-middleware-something>)  
 app)  
 
(builder  
  (<clack-middleware-conditional>  
   :condition (lambda (env)  
                (scan "WebKit" (getf env :http-user-agent)))  
   :builder '(<clack-middleware-static>  
              :path "/public/"  
              :root #p"/static-files/"))  
  app)  
 
(wrap  
 (make-instance '<clack-middleware-conditional>  
    :condition (lambda (env)  
                 (scan "WebKit" (getf env :http-user-agent)))  
    :builder '(<clack-middleware-something>  
               :path "/public/"  
               :root #p"/static-files/"))  
 app) 

AUTHOR

EXTERNAL SYMBOLS