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

Re: creating meta tags from wmlrc variables

On 12/09/01 09:12 PM, Denis Barbier sat at the `puter and typed:
> On Sun, Dec 09, 2001 at 02:29:00PM -0500, Louis LeBlanc wrote:
> > I don't know if anyone else is on this list, but here goes.
> There are ;)
> > I'm trying to set up a series of meta tags for a site.
> > Right now, I'm defining them in the site root .wmlrc file as follows:
> > 
> > -D PR_REVISIT-AFTER="30 days"
> > etc.
> > 
> > What I want to do is construct a meta tag for each one as follows:
> > <meta name=distribution content="Global">
> > <meta name="revisit-after" content="30 days">
> > <meta name="robots" Content="ALL">
>   <meta name=distribution content="$(PR_DISTRIBUTION)">
>   <meta name="revisit-after" content="$(PR_ROBOTS)">
>   <meta name="robots" Content="$(PR_REVISIT-AFTER)">
> > You probably get the picture.  How do I turn these into headers?
> > 
> > If there is a better way to define the header values, or if this is
> > the proper way, I'd be interested in knowing.
> The proper way is to define a template file for all pages.  Then you
> may either hardcode these values into this template, or put them in
> a global .wmlrc file as you did.

Yes, that's definitely useful. I've also just discovered the beauty of
a simple  include file. This  would make it  possible to keep  all the
meta tags in one place and maintain them in a single location.

Of course the template idea is very  interesting - and I think I could
save a lot of mileage on my keyboard  with no more than a dozen or so.
Any  'howto' that  covers  all the  cool  'and you  can  do this  with
templates . . .' items?

Louis LeBlanc               leblanc@keyslapper.org
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org                     ԿԬ

Speer's 1st Law of Proofreading:
  The visibility of an error is inversely proportional to the
  number of times you have looked at it.
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com