variables in included templates
"Bjorn" <[email protected]> Sun, 17 Feb 2008 22:15:25 -0000
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <[email protected]> |
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" ?> <p>Hello World</p> <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? Thanks, Bjorn