Re: variables in included templates
Brandon Long <[email protected]> Mon, 18 Feb 2008 13:32:47 -0800
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20080218213247.GB22391@bl1> |
You could try using the command line cgi_cstest or cstest programs to see if that works. If it does, then I guess it could be something with fcgi... Brandon On 02/18/08 Bjorn Tipling uttered the following other thing: > Hi, > > Yes everything was spelled correctly and it didn't work. I'm using HDF > with evar: now, which sucks because I don't get the syntax hilighting of > html markup. Perhaps it's another FastCGI issue? > > Bjorn > > > -------- Original Message -------- > > Subject: Re: variables in included templates > > From: Brandon Long <[email protected]> > > Date: Sun, February 17, 2008 11:32 pm > > To: Bjorn <[email protected]> > > Cc: [email protected] > > > > > > On 02/17/08 Bjorn uttered the following other thing: > > > Hi, > > > > > > I'm using the include function in the template syntax to include a > > > common header for all of my pages. I would like the title to be > > > dynamic, but I can't seem to set the title. My main template file > > > looks like this: > > > > > > <?cs include:"templates/header.cs" ?> > > > <div>Hello World</div> > > > <p>Testing <?cs var:Title ?> > > > <?cs include:"templates/footer.cs" ?> > > > > > > in header.cs I have: > > > > > > <html> > > > <head><title><?cs var:Title ?></title> > > > </head> > > > <body> > > > > > > In my C program I'm setting "Title" to "Welcome" and the var:Title in > > > the main template shows 'Welcome', but the included file, the header, > > > does not. Is there a way to do what I want? > > > > Yes, that should work. Are you sure you don't have some typo or > > something? > > > > Brandon > > > > -- > > "pretty code isn't always the right thing to do. people spend much > > more time reading mail than looking at the source code." > > -- Michael Elkins, mutt author > > http://www.fiction.net/blong/ -- "... one suspects that a really good Pentagon spokesperson could deny the very existence of all earthly and cosmic matter, if asked by a superior to do so, with a straight face ..." -- Today's Suck, 6/11/98 http://www.fiction.net/blong/