Autoadjusted variables for ROOT

[email protected] Tue, 22 Jul 2003 18:14:41 +0100
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
I am trying to cause all my HTML pages to reference a global
stylesheet, even ones in subdirectories, so the suggested way to do 
this is to have a .wmlrc file with "-DROOT~." then use the root 
variable in all the HTML pages.

For files in subdirectories it will create a relative URL like:
"../stylesheet.css"
but for the HTML files in the root of the website it will be:
"./stylesheet.css"

This might be confused with ../ by people looking at the HTML of the 
website, so I would prefer it if the URL was simply "stylesheet.css" 
for the times when ROOT is "."

Can this be done?

Thank you,
Steven Murdoch.


_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]