emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] What Happened to org-export-html-extension?


From: Ian Barton
Subject: Re: [O] What Happened to org-export-html-extension?
Date: Sun, 31 Mar 2013 15:54:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

On 31/03/13 11:01, Suvayu Ali wrote:
Hello Ian,

On Sun, Mar 31, 2013 at 10:43:21AM +0100, Ian Barton wrote:

However, all files are published with an .html extension. My Emacs customize
interface claims that org-export-html-extension doesn't exist. Grepping the
source for org-export-html-extension doesn't find anything. So has the
variable been renamed to something else?

All variables and functions called org-export or org-e- have been
renamed to org-<backend>-<oldname>.  So org-export-html-extension is
now, org-html-extension.

Hope this helps,

Thanks, it does and it doesn't. I have set the variable, but still get files with a .html extension.

I can reproduce the problem with the following minimal emacs:

(add-to-list 'load-path "~/.emacs.d/src/lisp")
(require 'org)

(require 'ox-html)

(setq org-publish-project-alist
      '(

       ;; ... add all the components here (see below)...
  ("org-ianbarton"
:base-directory "~/Documents/emacs/web_sites/ianbarton/org/_posts"
          :base-extension "org"
:publishing-directory "~/Documents/emacs/web_sites/ianbarton/pelican/blog/content"
          :recursive t
          :publishing-function org-html-publish-to-html
:headline-levels 4 ; Just the default for this project.
          :auto-preamble t
          :auto-index f
          :org-html-extension "yml"
          :auto-preamble t
          :body-only t
    )

  ("org-static-ian"
:base-directory "~/Documents/emacs/web_sites/ianbarton/org/_posts" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php" :publishing-directory "~/Documents/emacs/web_sites/ianbarton/pelican/blog/content"
          :recursive t
          :publishing-function org-ox-publish-attachment)


    ("ianbarton" :components ("org-ianbarton" "org-static-ian"))



      ))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]