From: Jason C. <cam...@xp...> - 2001-03-29 03:25:17
|
Todd, From what I can tell, Smarty pretty much does everything we discussed and even more for that matter with having a compiler. I haven't looked at Smarty really anymore than an hour or two but have been reading the messages being written about it on the list. It sounds like it would be something we could use thats for sure! Jason Campbell Xplozive Media Technologies >> 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 > > > > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |