[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Use of variables in HTML



On Fri, 4 Apr 2003, Kent West wrote:

> Sorry for being so very Off-Topic, but you folks know _everything_ . . .
> . :-)
> 
> Is there a way to use straight HTML or CSS (no perl, php, javascript,
> cgi) to create a web page that has variables in it, like so:
> 
>      <body>
>          Today's winner is <var=WINNER/>! Congratulations, <var=WINNER/>!
> Sorry, <var=LOSER/>.
>      </body>
> 
> and then have a separate document that has variable definitions, like so:
> 
> WINNER: Dogbert Comicdog
> LOSER: Dilbert Comicman
> 
> So that the web page, when rendered by a browser looks like so:
> 
> Today's winner is Dogbert Comicdog! Congratulations, Dogbert Comicdog!
> Sorry, Dilbert Comicman.
> 
> Thanks for any suggestions!
> 
> -- 
> Kent

Perhabs you might have a look at server-site-includes (ssi). I think it's
possible to do such things with these (there are, if I am right, some
include-commands to include another file in your document, what would be
exactly what you were looking for). Though, you have to enable them in
your webserver (probably apache). Php, etc would also do the trick.

Burkhard



Reply to: