diff --git a/plugins/heroku.lisp b/plugins/heroku.lisp index dff2681..0e92dc9 100644 --- a/plugins/heroku.lisp +++ b/plugins/heroku.lisp @@ -1,5 +1,5 @@ (eval-when (:compile-toplevel :load-toplevel) - (ql:quickload '(hunchentoot))) + (ql:quickload 'hunchentoot)) (defpackage :coleslaw-heroku (:use :cl) diff --git a/plugins/pygments.lisp b/plugins/pygments.lisp deleted file mode 100644 index fb7f3d6..0000000 --- a/plugins/pygments.lisp +++ /dev/null @@ -1,2 +0,0 @@ -(in-package :coleslaw) - diff --git a/plugins/restructured-text.lisp b/plugins/restructured-text.lisp index a543e51..777b1a2 100644 --- a/plugins/restructured-text.lisp +++ b/plugins/restructured-text.lisp @@ -2,6 +2,16 @@ (ql:quickload 'docutils)) (defpackage :coleslaw-rst - (:use :cl :coleslaw)) + (:use :cl) + (:import-from :coleslaw #:render-content) + (:import-from :cl-docutils #:read-rst + #:write-html) + (:export #:enable)) (in-package :coleslaw-rst) + +(defmethod render-content (text (format (eql :rst))) + (with-output-to-string (str) + (write-html str (read-rst text)))) + +(defun enable ())