From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: What Happened to org-export-html-extension? Date: Sun, 31 Mar 2013 20:31:14 +0100 Message-ID: <51588F02.3030203@wilkesley.net> References: <51580539.3080106@wilkesley.net> <20130331100123.GA8564@kuru.dyndns-at-home.com> <51584E39.4010004@wilkesley.net> Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMNyS-00011T-G2 for emacs-orgmode@gnu.org; Sun, 31 Mar 2013 15:31:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMNyO-0004q2-K1 for emacs-orgmode@gnu.org; Sun, 31 Mar 2013 15:31:28 -0400 Received: from mail2.wilkesley.net ([109.74.196.44]:55456 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMNyO-0004pv-Eq for emacs-orgmode@gnu.org; Sun, 31 Mar 2013 15:31:24 -0400 Received: from [192.168.0.207] (unknown [46.33.134.31]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id 54EC66B5D03 for ; Sun, 31 Mar 2013 20:31:23 +0100 (BST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org > org-html-publish-to-html is defined in ox-html.el and looks like this > (sans doc): > > (defun org-html-publish-to-html (plist filename pub-dir) > (org-publish-org-to 'html filename ".html" plist pub-dir)) > > You could define your own publishing function, e.g. > > (defun my-org-html-publish-to-html (plist filename pub-dir) > (org-publish-org-to 'html filename ".yml" plist pub-dir)) > > and refer to that in your org-publish-project-alist. > > org-html-extension is used in org-html-export-to-html which calls > org-export-to-file, which is the same function org-publish-org-to > calls (so org-html-extension is bypassed). > > There's also the export option :html-extension but it doesn't look > like it's used to name published files. > Thanks for the clear explanation. Using my own function works, but this does seem to be a regression. Defining your own extension is useful e.g. if you want to emit .php files. Ian.