emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Endak A <enda_k2@yahoo.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Option for minimalist html file
Date: Wed, 23 May 2012 17:17:21 +0530	[thread overview]
Message-ID: <81ehqbazli.fsf@gmail.com> (raw)
In-Reply-To: <1337716856.46783.YahooMailNeo@web121405.mail.ne1.yahoo.com> (Endak A.'s message of "Tue, 22 May 2012 13:00:56 -0700 (PDT)")

Endak A <enda_k2@yahoo.com> 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
>
>
>
>

-- 

      parent reply	other threads:[~2012-05-23 11:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-18 17:59 Option for minimalist html file Endak A
2012-05-19 17:14 ` Ian Barton
2012-05-22 20:00 ` Endak A
2012-05-22 21:32   ` Nick Dokos
2012-05-23 11:47   ` Jambunathan K [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81ehqbazli.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=enda_k2@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).