   (interactive)
   (let ((org-html-htmlize-output-type 'css)
         (org-html-htmlize-font-prefix "org-")
+        (pub-plist (org-wiki-make-org-publish-plist org-exporter))
         )
-    (org-publish
-     `("html"
-       :base-directory       ,org-wiki-location
-       :base-extension        "org"
-       :publishing-directory  ,org-wiki-location
-       :publishing-function   ,org-exporter
-       )
-     t
-     )))
+    (org-publish pub-plist t)))
 
 
 (defun org-wiki-export-html-sync ()

     (dired (org-wiki--assets-get-dir page)))))


(defun org-wiki-export-with (org-exporter)
  "Export all pages to a given format. See full doc.
ORG-EXPORTER is a function that exports an org-mode page to a specific format like html.

  (interactive)
  (let ((org-html-htmlize-output-type 'css)
        (org-html-htmlize-font-prefix "org-")
        (pub-plist (org-wiki-make-org-publish-plist 'org-html-publish-to-html))
        )
    (org-publish pub-plist t)))

(defun org-wiki-export-html ()
  "Export all pages to html.
