      (dired (org-wiki--assets-get-dir page)))))
 
 
+(defun org-wiki-make-org-publish-plist (org-exporter)
+  "Prepare plist for use with `org-publish'."
+  (let ((plist-base
+         `("html"
+           :base-directory        ,org-wiki-location
+           :base-extension        "org"
+           :publishing-directory  ,org-wiki-location
+           :publishing-function   ,org-exporter)))
+    (setcdr plist-base
+            (org-combine-plists (cdr plist-base) org-wiki-publish-plist))
+    plist-base))
+
 (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-")
        )
    (org-publish
     `("html"
       :base-directory       ,org-wiki-location
       :base-extension        "org"
       :publishing-directory  ,org-wiki-location
       :publishing-function    org-html-publish-to-html
       )
     t
     )))

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

  (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 pub-plist t)))


(defun org-wiki-export-html-sync ()
