From: Sebastian Rose <sebastian_rose@gmx.de>
To: Daniel Clemente <n142857@gmail.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Re: Add HTML after <body> and before title
Date: Mon, 11 May 2009 11:39:04 +0200 [thread overview]
Message-ID: <87bpq06ksn.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <87eiuwok7x.fsf@gmail.com> (Daniel Clemente's message of "Sun, 10 May 2009 21:01:54 +0200")
To include script.js into the <head> section per file:
#+STYLE: <script type="text/javascript" src="script.js" />
Or
#+STYLE: <script type="text/javascript">
#+STYLE: <!--/*--><![CDATA[/*><!--*/
#+STYLE: function youCodeHere { void 0; }
#+STYLE: /*]]>*///-->
#+STYLE: </script>
NOTE:
there is no `document.write' in XHTML the way it was in HTML. You
would have to call `document.open()' before and therefore erase the
documents contents.
So I guess putting the script in the head section might be OK.
Regards
Sebastian
Daniel Clemente <n142857@gmail.com> writes:
> El dom, may 10 2009, Daniel Clemente va escriure: >some trick to insert code
> just after the <body> or after <div id="content">?
>
> Sorry, I forgot about org-publish. It can use the parameter :preamble to do
> exactly that. Furthermore:
>
>
> ,----
> | org-export-html-preamble is a variable defined in `org-html.el'. Its value is
> | nil
> |
> | Documentation: Preamble, to be inserted just before <body>. Set by publishing
> | functions.
> `----
>
>
>
> I prefer to always embed the configuration inside the .org file instead of in
> Elisp code, but if this is only possible with org-publish, I should use it.
>
>
> -- Daniel
prev parent reply other threads:[~2009-05-11 9:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-10 18:36 Add HTML after <body> and before title Daniel Clemente
2009-05-10 19:01 ` Daniel Clemente
2009-05-11 9:39 ` Sebastian Rose [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=87bpq06ksn.fsf@kassiopeya.MSHEIMNETZ \
--to=sebastian_rose@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=n142857@gmail.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).