mirror of
https://github.com/vale981/lack
synced 2025-03-05 09:21:39 -05:00
Allow lack-component at the last of builder.
This commit is contained in:
parent
3e46375783
commit
2930994eb1
2 changed files with 5 additions and 2 deletions
3
lack.asd
3
lack.asd
|
@ -18,7 +18,8 @@
|
||||||
:version "0.1"
|
:version "0.1"
|
||||||
:author "Eitaro Fukamachi"
|
:author "Eitaro Fukamachi"
|
||||||
:license "LLGPL"
|
:license "LLGPL"
|
||||||
:depends-on (:lack-util
|
:depends-on (:lack-component
|
||||||
|
:lack-util
|
||||||
:bordeaux-threads
|
:bordeaux-threads
|
||||||
:alexandria)
|
:alexandria)
|
||||||
:components ((:module "src"
|
:components ((:module "src"
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
(in-package :cl-user)
|
(in-package :cl-user)
|
||||||
(defpackage lack.builder
|
(defpackage lack.builder
|
||||||
(:use :cl)
|
(:use :cl)
|
||||||
|
(:import-from :lack.component
|
||||||
|
:to-app)
|
||||||
(:import-from :lack.util
|
(:import-from :lack.util
|
||||||
:find-package-or-load)
|
:find-package-or-load)
|
||||||
(:export :builder))
|
(:export :builder))
|
||||||
|
@ -79,5 +81,5 @@
|
||||||
,@(loop for mw in middlewares
|
,@(loop for mw in middlewares
|
||||||
when mw
|
when mw
|
||||||
collect (convert-to-middleware-form mw))))
|
collect (convert-to-middleware-form mw))))
|
||||||
:initial-value ,(car (last app-or-middlewares))
|
:initial-value (to-app ,(car (last app-or-middlewares)))
|
||||||
:from-end t)))
|
:from-end t)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue