emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* expire tag in Org-Mode HTML export
@ 2012-02-27 12:20 Stefan Vollmar
  2012-02-27 12:35 ` Bernt Hansen
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Vollmar @ 2012-02-27 12:20 UTC (permalink / raw)
  To: emacs-orgmode Mode

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

Hello,

we want to include a
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
entry in the HTML export of our Org pages to indicate that browsers should not cache the pages but rather reload them the next time.

This line should go into the "head" part of the HTML pages (otherwise "#+html:" would solve the problem) - how can we accomplish this in Org-mode?

Many thanks in advance.
Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: vollmar@nf.mpg.de   http://www.nf.mpg.de









[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: expire tag in Org-Mode HTML export
  2012-02-27 12:20 expire tag in Org-Mode HTML export Stefan Vollmar
@ 2012-02-27 12:35 ` Bernt Hansen
  2012-02-27 13:48   ` Stefan Vollmar
  0 siblings, 1 reply; 4+ messages in thread
From: Bernt Hansen @ 2012-02-27 12:35 UTC (permalink / raw)
  To: Stefan Vollmar; +Cc: emacs-orgmode Mode

Stefan Vollmar <vollmar@nf.mpg.de> writes:

> Hello,
>
> we want to include a
> <META HTTP-EQUIV="EXPIRES" CONTENT="0">
> entry in the HTML export of our Org pages to indicate that browsers
> should not cache the pages but rather reload them the next time.
>
> This line should go into the "head" part of the HTML pages (otherwise
> "#+html:" would solve the problem) - how can we accomplish this in
> Org-mode?
>
> Many thanks in advance.
> Warm regards,
>  Stefan

Hi Stefan,

You might be able to stick it in the extra style variable like this

--8<---------------cut here---------------start------------->8---
(setq org-export-html-style-extra
     "<meta HTTP-EQUIV=\"EXPIRES\" CONTENT=\"0\">")
--8<---------------cut here---------------end--------------->8---

HTH,
Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: expire tag in Org-Mode HTML export
  2012-02-27 12:35 ` Bernt Hansen
@ 2012-02-27 13:48   ` Stefan Vollmar
  2012-02-27 14:05     ` Bernt Hansen
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Vollmar @ 2012-02-27 13:48 UTC (permalink / raw)
  To: emacs-orgmode Mode; +Cc: Bernt Hansen

[-- Attachment #1: Type: text/plain, Size: 1602 bytes --]

Dear Bernt,

thanks for the quick reply - unfortunately, this does not solve our problem as org-export-html-style-extra is limited to style-related information. We would need something that allows extending the "head" block with another meta-tag, so org-export-html-preamble is already after the head-block and org-export-html-xml-declaration is before the head-block.

Warm regards,
 Stefan

On 27.02.2012, at 13:35, Bernt Hansen wrote:

> Stefan Vollmar <vollmar@nf.mpg.de> writes:
> 
>> Hello,
>> 
>> we want to include a
>> <META HTTP-EQUIV="EXPIRES" CONTENT="0">
>> entry in the HTML export of our Org pages to indicate that browsers
>> should not cache the pages but rather reload them the next time.
>> 
>> This line should go into the "head" part of the HTML pages (otherwise
>> "#+html:" would solve the problem) - how can we accomplish this in
>> Org-mode?
>> 
>> Many thanks in advance.
>> Warm regards,
>> Stefan
> 
> Hi Stefan,
> 
> You might be able to stick it in the extra style variable like this
> 
> --8<---------------cut here---------------start------------->8---
> (setq org-export-html-style-extra
>     "<meta HTTP-EQUIV=\"EXPIRES\" CONTENT=\"0\">")
> --8<---------------cut here---------------end--------------->8---
> 
> HTH,
> Bernt

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: vollmar@nf.mpg.de   http://www.nf.mpg.de









[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: expire tag in Org-Mode HTML export
  2012-02-27 13:48   ` Stefan Vollmar
@ 2012-02-27 14:05     ` Bernt Hansen
  0 siblings, 0 replies; 4+ messages in thread
From: Bernt Hansen @ 2012-02-27 14:05 UTC (permalink / raw)
  To: Stefan Vollmar; +Cc: emacs-orgmode Mode

Stefan Vollmar <vollmar@nf.mpg.de> writes:

> Dear Bernt,
>
> thanks for the quick reply - unfortunately, this does not solve our
> problem as org-export-html-style-extra is limited to style-related
> information. We would need something that allows extending the "head"
> block with another meta-tag, so org-export-html-preamble is already
> after the head-block and org-export-html-xml-declaration is before the
> head-block.
>
> Warm regards,
>  Stefan

Hi Stefan,

When I tested it it didn't seem embedded inside a style tag.

,----[ export.org ]
| * Export me
| 
| Check the file for header info
| 
| * Done.
| 
| End of file
`----

,----[ export.html ]
| <?xml version="1.0" encoding="iso-8859-1"?>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
| <head>
| <title>export</title>
| <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
| <meta name="title" content="export"/>
| <meta name="generator" content="Org-mode"/>
| <meta name="generated" content="2012-02-27 09:02:34 EST"/>
| <meta name="author" content="Bernt Hansen"/>
| <meta name="description" content=""/>
| <meta name="keywords" content=""/>
| <style type="text/css">
|  <!--/*--><![CDATA[/*><!--*/
<snip>
|   /*]]>*/-->
| </style><meta HTTP-EQUIV="EXPIRES" CONTENT="0">
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| <script type="text/javascript">
| <!--/*--><![CDATA[/*><!--*/
<snip>
| /*]]>*///-->
| </script>
| 
| </head>
| <body>
<snip>
| </body>
| </html>
`----

Regards,
Bernt


>
> On 27.02.2012, at 13:35, Bernt Hansen wrote:
>
>> Stefan Vollmar <vollmar@nf.mpg.de> writes:
>> 
>>> Hello,
>>> 
>>> we want to include a
>>> <META HTTP-EQUIV="EXPIRES" CONTENT="0">
>>> entry in the HTML export of our Org pages to indicate that browsers
>>> should not cache the pages but rather reload them the next time.
>>> 
>>> This line should go into the "head" part of the HTML pages (otherwise
>>> "#+html:" would solve the problem) - how can we accomplish this in
>>> Org-mode?
>>> 
>>> Many thanks in advance.
>>> Warm regards,
>>> Stefan
>> 
>> Hi Stefan,
>> 
>> You might be able to stick it in the extra style variable like this
>> 
>> --8<---------------cut here---------------start------------->8---
>> (setq org-export-html-style-extra
>>     "<meta HTTP-EQUIV=\"EXPIRES\" CONTENT=\"0\">")
>> --8<---------------cut here---------------end--------------->8---
>> 
>> HTH,
>> Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-27 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 12:20 expire tag in Org-Mode HTML export Stefan Vollmar
2012-02-27 12:35 ` Bernt Hansen
2012-02-27 13:48   ` Stefan Vollmar
2012-02-27 14:05     ` Bernt Hansen

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).