[Top][All Lists]

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

Re: [Orgmode] Re: Add HTML after <body> and before title

From: Sebastian Rose
Subject: Re: [Orgmode] Re: Add HTML after <body> and before title
Date: Mon, 11 May 2009 11:39:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

To include script.js into the <head> section per file:

#+STYLE:    <script type="text/javascript" src="script.js" />


#+STYLE: <script type="text/javascript">
#+STYLE:  <!--/*--><![CDATA[/*><!--*/
#+STYLE:    function youCodeHere { void 0; }
#+STYLE:  /*]]>*///-->
#+STYLE: </script>

   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.



Daniel Clemente <address@hidden> 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

reply via email to

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