all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using hhmts Timestamp in a <meta> tag, Feature Request
@ 2009-03-16 22:04 Rick
  0 siblings, 0 replies; 4+ messages in thread
From: Rick @ 2009-03-16 22:04 UTC (permalink / raw)
  To: help-gnu-emacs

I understand how to use the <!-- hhmts start -->Last modified: Mon Mar
16 17:53:23 EDT 2009 <!-- hhmts end --> to update the timestamp in a
xhtml file, however, I would prefer not to have the timestamp
displayed.  I would prefer to use it in a <meta> tag, so that it might
work as follows:

<meta> name="Timestamp" content="Last modified: Mon Mar 16 17:53:23
EDT 2009 ">

At the moment I can insert it into a hidden tag such as:

<p style="display:none;"><!-- hhmts start -->Last modified: Fri Mar 13
21:53:45 EDT 2009 <!-- hhmts end --></p>

but this is not as clean as using a <meta> tag.

Please accept this as a feature request for a future version, unless
someone has a suggestion that would work now.

Thank you!

RIck


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

* Re: Using hhmts Timestamp in a <meta> tag, Feature Request
       [not found] <ee7f666a-96f6-445f-9d21-85dee25e15b2@c11g2000yqj.googlegroups.com>
@ 2009-03-17  8:37 ` Stefan Kamphausen
  2009-03-17 16:23   ` Rick
  2009-03-17 18:26   ` Rick
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Kamphausen @ 2009-03-17  8:37 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'd drop the hhmts-tags and switch to time-stamp.

Put something like this into your emacs-init-file:
(require 'time-stamp)
(add-hook 'write-file-hooks 'time-stamp)


And then create your HTML-files like this:

----------------------------------------------------------------------
<html>
  <head>
     <meta name="Timestamp" content="Last modified: 2009-03-17 09:35:39" />
 <title>Testing Timestamp</title>
</head>
<body>
<h1>Testing Timestamp</h1>

</body>
</html>
<!-- 
Local Variables:
time-stamp-start: "<meta name=\"Timestamp\" content=\""
time-stamp-end: "\" />"
time-stamp-format: "Last modified: %:y-%02m-%02d %02H:%02M:%02S"
End:
-->
----------------------------------------------------------------------


Cheers
Stefan

-- 
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.


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

* Re: Using hhmts Timestamp in a <meta> tag, Feature Request
  2009-03-17  8:37 ` Using hhmts Timestamp in a <meta> tag, Feature Request Stefan Kamphausen
@ 2009-03-17 16:23   ` Rick
  2009-03-17 18:26   ` Rick
  1 sibling, 0 replies; 4+ messages in thread
From: Rick @ 2009-03-17 16:23 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 17, 4:37 am, Stefan Kamphausen <ska...@gmx.net> wrote:
> Hi,
>
> I'd drop the hhmts-tags and switch to time-stamp.
...

Thanks for the suggestion!

Cheers!

Rick


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

* Re: Using hhmts Timestamp in a <meta> tag, Feature Request
  2009-03-17  8:37 ` Using hhmts Timestamp in a <meta> tag, Feature Request Stefan Kamphausen
  2009-03-17 16:23   ` Rick
@ 2009-03-17 18:26   ` Rick
  1 sibling, 0 replies; 4+ messages in thread
From: Rick @ 2009-03-17 18:26 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 17, 4:37 am, Stefan Kamphausen <ska...@gmx.net> wrote:
> Hi,
>
> I'd drop the hhmts-tags and switch to time-stamp.
>
> Put something like this into your emacs-init-file:
> (require 'time-stamp)
> (add-hook 'write-file-hooks 'time-stamp)
...

Actually, I found I had to use:

(add-hook 'before-save-hook 'time-stamp)

instead to make it work.

(Debian  Emacs 22.2.1)

Thanks again for pointing this out to me!

Cheers!

Rick


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

end of thread, other threads:[~2009-03-17 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ee7f666a-96f6-445f-9d21-85dee25e15b2@c11g2000yqj.googlegroups.com>
2009-03-17  8:37 ` Using hhmts Timestamp in a <meta> tag, Feature Request Stefan Kamphausen
2009-03-17 16:23   ` Rick
2009-03-17 18:26   ` Rick
2009-03-16 22:04 Rick

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.