RE: variables in included templates
Bjorn Tipling <[email protected]> Mon, 18 Feb 2008 13:24:25 -0700
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <20080218132424.a88b5a45d4f18442e3264b556d999a36.561c404efd.wbe@email.secureserver.net> |
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/