mirror of
https://github.com/vale981/lack
synced 2025-03-05 17:31:39 -05:00
Redefine to-app as a generic function.
This commit is contained in:
parent
80a1c2d300
commit
e80f4e2ebc
1 changed files with 5 additions and 4 deletions
|
@ -12,7 +12,8 @@
|
||||||
(:method ((component function) env)
|
(:method ((component function) env)
|
||||||
(funcall component env)))
|
(funcall component env)))
|
||||||
|
|
||||||
(defun to-app (component)
|
(defgeneric to-app (component)
|
||||||
(if (typep component 'lack-component)
|
(:method ((component lack-component))
|
||||||
(lambda (env) (call component env))
|
(lambda (env) (call component env)))
|
||||||
component))
|
(:method ((component t))
|
||||||
|
component))
|
||||||
|
|
Loading…
Add table
Reference in a new issue