emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: emacs-orgmode@gnu.org
Subject: new exporter and derived-backend
Date: Tue, 5 Feb 2013 18:20:38 -0500	[thread overview]
Message-ID: <20130205232038.GA51164@BigDog.local> (raw)

Hi-
I am trying to define a backend derived from `e-html' for export to
s5. However, it seems that the derived settings in `:options-alist'
are not being respected.

For instance:

#+begin_src elisp
  (org-export-define-derived-backend foo e-html
    :options-alist
    ((:style-include-scripts nil nil nil t)
     (:style-include-default nil nil nil t)
     (:style nil nil "<style></style>" t)))
  (org-export-to-buffer 'foo "*foo*")
  (with-current-buffer "*foo*"
    (buffer-substring (point-min) (point-max)))
#+end_src

Still includes both the default style and the scripts and does not
include the `:style' specified above. Abbreviated results from the
above:

#+results:
#+begin_example
<!-- snip -->
<style type="text/css">
 <!--/*--><![CDATA[/*><!--*/
  html { font-family: Times, serif; font-size: 12pt; }
  .title  { text-align: center; }
  .todo   { color: red; }
  /* snip */
  /*]]>*/-->
</style><script type="text/javascript">
/*
@licstart  The following is the entire license notice for the
JavaScript code in this tag.

/* snip */
/*]]>*///-->
</script>
</head>
<body>
</body>
</html>
#+end_example


am i missing something or is there a problem in org-e-html?

rick

             reply	other threads:[~2013-02-05 23:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-05 23:20 Rick Frankel [this message]
2013-02-06 22:13 ` new exporter and derived-backend Nicolas Goaziou

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=20130205232038.GA51164@BigDog.local \
    --to=rick@rickster.com \
    --cc=emacs-orgmode@gnu.org \
    /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).