>>>> "jsja" == John S J Anderson
<jacobs(a)xemacs.org> writes:
jsja> I think the Right Thing would be to have a genpage macro (a Perl
jsja> subroutine) that would generate an appropriate <IMG> tag. Something
jsja> like
jsja> relImg( 'xemacs.gif' , 'alt="XEmacs"' )
jsja> to generate
jsja> <IMG SRC="../../Images/xemacs.gif"
alt="XEmacs">
jsja> This makes it explicit that Magic is happening, and keeps the Perl
jsja> stuff out of the HTML stuff, which I think is the way to go for sake
jsja> of clarity.
jsja> It's trivial to do an ugly version of this (the example above is
jsja> ugly); a good version would need to integrate some Perl modules so as
I'd love to
use File::Spec
for that but this particular module wasn't working too well under perl
5.005.
We can still give it a try.
It features platform-independent path handling and
abs2rel(path, root)
would come in real handy.
Later,
Adrian
jsja> to be able to automatically insert the proper 'height' and
'width'
jsja> tags.
jsja> john.
jsja> --
jsja> ------------------------------------------------------------------------
jsja> John S Jacobs Anderson \
<URL:http://www.xemacs.org>
jsja> You'll have to pry my Emacs from my cold \ jacobs(a)xemacs.org
jsja> dead oversized control-pressing left pinky finger. -- Randal L. Schwartz