emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Option for minimalist html file


From: Jambunathan K
Subject: Re: [O] Option for minimalist html file
Date: Wed, 23 May 2012 17:17:21 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (windows-nt)

Endak A <address@hidden> writes:

> Can there be an option like
> #+OPTIONS: html-minimal:t
>
> which does not have
>
> <script type="text/javascript">
> ...
> </script>
>  
> <div id="preamble">
> ...
> </div>
>
> <div id="postamble">
> ...
> </div>
>
> or any of the meta tags except :
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
>
> or <div id="content"> and the accompanying </div> but obviously the
> stuff in-between.
>
> If I want to, I can insert any of the html code that is missing from
> the minimalist version that I want using #+HTML: or #+STYLE:

You need to use the new e-html exporter and roll out your own defun for
custom template.


Get the default template function:

M-: (assoc-default 'template org-e-html-translate-alist)
=> org-e-html-template

Replace the default template function with your own:

M-: (setcdr (assoc 'template org-e-html-translate-alist)
            'org-my-e-html-template)

Fill out org-my-e-html-template based on your needs. (Hint: M-x
load-library RET org-e-html and M-x find-function RET
org-e-html-template)

>
>
> Best wishes,
>
> Enda
>
>
>
>

-- 



reply via email to

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