Allow lack-component at the last of builder.

This commit is contained in:
Eitaro Fukamachi 2015-03-21 02:31:36 +09:00
parent 3e46375783
commit 2930994eb1
2 changed files with 5 additions and 2 deletions

View file

@ -18,7 +18,8 @@
:version "0.1"
:author "Eitaro Fukamachi"
:license "LLGPL"
:depends-on (:lack-util
:depends-on (:lack-component
:lack-util
:bordeaux-threads
:alexandria)
:components ((:module "src"

View file

@ -1,6 +1,8 @@
(in-package :cl-user)
(defpackage lack.builder
(:use :cl)
(:import-from :lack.component
:to-app)
(:import-from :lack.util
:find-package-or-load)
(:export :builder))
@ -79,5 +81,5 @@
,@(loop for mw in middlewares
when 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)))