Skip to content

Commit

Permalink
Merge pull request emacsorphanage#204 from kleinmann/feature/configur…
Browse files Browse the repository at this point in the history
…able-export-method

Extract export backend to variable to allow other backends.
  • Loading branch information
sillykelvin authored Nov 22, 2016
2 parents 870d47a + 0bc43b8 commit bef1e2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-template.el
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ similar to `op/render-header'. `op/highlight-render' is `js' or `htmlize'."
#'(lambda (code lang)
(when code
(org-html-encode-plain-text code)))))
(org-export-as'html nil nil t nil))))
(org-export-as op/export-backend nil nil t nil))))
((eq op/highlight-render 'htmlize)
(org-export-as'html nil nil t nil))))))))
(org-export-as op/export-backend nil nil t nil))))))))

(defun op/render-footer (&optional param-table)
"Render the footer on each page. PARAM-TABLE is similar to
Expand Down
4 changes: 4 additions & 0 deletions op-vars.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
`op/repository-html-branch'."
:group 'org-page :type 'string)

(defcustom op/export-backend 'html
"The org-export backend used for page generation"
:group 'org-page :type 'symbol)

(defcustom op/site-domain nil
"The domain name of entire site, it is recommended to assign with prefix
http:// or https://, http will be considered if not assigned."
Expand Down
1 change: 1 addition & 0 deletions org-page.el
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ perfectly manipulated by org-page."
`op/site-domain': <required>
`op/personal-disqus-shortname': <optional>
`op/personal-duoshuo-shortname': <optional>
`op/export-backend': [optional](default 'html)
`op/repository-org-branch': [optional] (but customization recommended)
`op/repository-html-branch': [optional] (but customization recommended)
`op/site-main-title': [optional] (but customization recommanded)
Expand Down

0 comments on commit bef1e2f

Please sign in to comment.