You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-user@tcl.apache.org by "Hicks, Bob" <BH...@osc.uscg.mil> on 2005/04/29 18:21:15 UTC

Question on scope (not the mouthwash) and another

I am mucking around with rivet at work.
 
I have an index.tcl file with:
 
set titleMain "The title is main"
parse index.rvt
 
The file index.rvt has 3 includes:
 
<? include tpl/header.tpl ?>
<? include tpl/main.tpl ?>
<? include tpl/footer.tpl ?>
 
The main.tpl actually has the place where I want to put <? $titleMain ?>,
but when I run it everything shows up except for the titleMain part. Does
Rivet(tcl) file only pass variables to the file it parses?
 
The second question would be how do I get the URL param (i.e.
page=thispage)? Would that be something like:
 
if {load_header eq "thispage"} {
    # do something
} elseif {load_header eq "thatpage" {
    # do something
}
 
Bob