Common Lisp Package: CLACK.BUILDER

# 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 * Eitarow Fukamachi (e.arrows@gmail.com) ## SEE ALSO * Clack.Middleware

README:

FUNCTION

Private

%BUILDER (&REST APP-OR-MIDDLEWARE)

Wrap Clack application with middlewares and return it as one function.

ENSURE-LIST (LIST)

If LIST is a list, it is returned. Otherwise returns the list designated by LIST.

MACRO

Public

BUILDER (&REST APP-OR-MIDDLEWARE)

Some Middleware and Applications reduce into one function.

BUILDER-LAZY (&REST APP-OR-MIDDLEWARE)

Some Middleware and Applications reduce into one function. This evals given Components in each HTTP request time.

GENERIC-FUNCTION

Private

CALL (COMP ENV)

Invoke component. Designed to be overriden in subclasses.

Undocumented

WRAP (THIS APP-OR-MIDDLEWARE)

VARIABLE

Public

*BUILDER-LAZY-P*

Flag whether using lazy building. If t, build up for each HTTP request. This is useful in development phase.

CLASS

Private

Undocumented

<CLACK-MIDDLEWARE-CONDITIONAL>