From: Todd O. <to...@da...> - 2001-03-29 01:21:54
|
> function("test") and function($bla) are exactly the same to php as long as > $bla=="test", so there's no difference at all between "hard-coding" the > template name or getting it out of a database... I agree. But does the variable above cause Smarty to recompile the template? If not, then great! That was my only question. Sorry to confuse cacheing with compiling--it did mean compiling. > How about using variable (templated??) style sheets ? > H1 {font-family: <?echo $fonts?>} I didn't mean I wanted to have dynamic style sheets, although that would be an interesting concept. I just wanted to make sure we used style sheets first, then templates (i.e. no font tags in the template). > I don't really follow you here... what exactly do you mean when you say that > Smarty was designed to work on a file by file basis ? I was trying to say that I envision a system that has a fundamental theme meaning nav bar on left, title up top, poll on right and articles in the center let's say. This theme would carry through the site, without having a separate template file for each site category. Does that make any sense? Jason can you help me out here, it's what we talked about by phone on Saturday? --Todd |