[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers] [ 102089 ] SSI for timestamps
From: |
nobody |
Subject: |
[Savannah-hackers] [ 102089 ] SSI for timestamps |
Date: |
Mon, 28 Apr 2003 09:38:43 -0400 |
Support Request #102089, was updated on Mon 04/28/03 at 14:42
You can respond by visiting:
http://savannah.gnu.org/support/?func=detailsupport&support_id=102089&group_id=11
Category: Web
Status: Open
Priority: 5
Summary: SSI for timestamps
By: yeupou
Date: Mon 04/28/03 at 15:38
Logged In: YES
user_id=1896
Browser: Mozilla/5.0 (compatible; Konqueror/3.1; Linux 2.4.21-pre7-ac2; i686;
fr, address@hidden)
"As I noted, CVS $Id: $ can't be used, as we would have to
commit RST file first to get tag updated, then compile into
HTML, then commit HTML."
$Id: $ is updated each time a file is commited.
If you put $Id: $ in your rst file, then generate your html page, then
commit both pages, both $Id: $ will be updated, with the appropriate infos
for each one.
"$Id: $ in the generated file is not good either, because it
would be changed after compilation. This would lead into
commiting all generated files always, as the compiled
version would have $Id: $ and the file in CVS would have
$Id: someone somedate$. Also, we couldn't control the syntax
shown on the web pages."
It's unclear to me.
->> $Id: $ in file.html
->> cvs ci
->> $Id: someone somedate $ in file.html, in the CVS sure, but also in
your "compiled file".
If you regenerate the whole site,
->> $Id: $ in file.html
so, right, you would have everyfile to be updated on the CVS.
Is that your point ?
I've two solutions for you to create static timestamp without commiting
everything or commiting 2 times :
- Not generating files until their correspondant RST change. This way
you can use cvs $Id: $ without bothering.
- Add by yourself a timestamp to the html files. A script can easily
extract the modified-time for the correspondant RST file and add it in the
html file (I do not know how RST -> HTML works, but it's should provide
such possibility). Until the RST's mtime change, the html will not be
commited, as nothing change. This way, you can even add the
timestamp which the syntax you want.
"I can't think IncludesNoExec could be a security problem, as
SSI is in wide use. The performance penalty must be much
lower than in using PHP or such."
But PHP is not available anyway.
Also, the web server is not managed by the savannah staff.
So we cannot make that decision.
----------------------------------------------------------------------
By: Tuukka.Hastrup
Date: Mon 04/28/03 at 15:08
Logged In: YES
user_id=5401
Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030327
Debian/1.3-4
RST files are written in ReStructuredText and can be
compiled into HTML etc.
As I noted, CVS $Id: $ can't be used, as we would have to
commit RST file first to get tag updated, then compile into
HTML, then commit HTML.
$Id: $ in the generated file is not good either, because it
would be changed after compilation. This would lead into
commiting all generated files always, as the compiled
version would have $Id: $ and the file in CVS would have
$Id: someone somedate$. Also, we couldn't control the syntax
shown on the web pages.
I can't think IncludesNoExec could be a security problem, as
SSI is in wide use. The performance penalty must be much
lower than in using PHP or such.
----------------------------------------------------------------------
You can respond by visiting:
http://savannah.gnu.org/support/?func=detailsupport&support_id=102089&group_id=11