Merge pull request #101 from ljanyst/user-plugins
Allow plug-ins to be defined in the user repo
This commit is contained in:
commit
9819c279bb
2 changed files with 11 additions and 1 deletions
|
@ -49,7 +49,9 @@
|
|||
(defun enable-plugin (name args)
|
||||
"Given a plugin, NAME, compile+load it and call its ENABLE function with ARGS."
|
||||
(flet ((plugin-path (sym)
|
||||
(app-path "plugins/~(~A~)" sym))
|
||||
(if (probe-file (repo-path "plugins/~(~A~).lisp" sym))
|
||||
(repo-path "plugins/~(~A~)" sym)
|
||||
(app-path "plugins/~(~A~)" sym)))
|
||||
(plugin-package (sym)
|
||||
(format nil "~:@(coleslaw-~A~)" sym)))
|
||||
(let ((file (plugin-path name)))
|
||||
|
|
|
@ -13,6 +13,14 @@
|
|||
(:export #:main
|
||||
#:preview
|
||||
#:*config*
|
||||
;; Config Accessors
|
||||
#:author
|
||||
#:deploy-dir
|
||||
#:domain
|
||||
#:page-ext
|
||||
#:repo-dir
|
||||
#:staging-dir
|
||||
#:title
|
||||
;; Core Classes
|
||||
#:content
|
||||
#:post
|
||||
|
|
Loading…
Add table
Reference in a new issue