Re: [Cheetahtemplate-discuss] concatenating strings at compile time
Brought to you by:
rtyler,
tavis_rudd
From: Raphael M. <rap...@li...> - 2006-03-30 08:16:49
|
Hi, Maybe I am missing something too, but is your expression in a declaration (#def) or in the body of the template? If it is in the body why isn't the following enough? ${structural_path_vars.s_page_path}styles/layout.css If it is in a #def, should not the proposition be the following ? mypath = ("$structural_path_vars.s_page_path" "styles/layout.css") my 2 cents r. ch...@su... wrote: > Thanks for that, > > Perhaps I am missing something. > > If I place this in my template > $structural_path_vars.s_page_path"styles/layout.css" based upon the > premise that it is the basically the same as error_message = ( "First > part " "Second part") my output is ../../"styles/layout.css" and what I > want / need is ../../styles/layout.css. > > If I skip the quotes quite rightly Cheetah thinks it is one big variable. > > Tavis, if Mike has not got a full handle on what preprocessors and > macros are yet, then I am afraid it's too steep a learning curve to fit > my time frame, though I will make an effort to get my head round them soon. > > > Chris -- Raphael Marvie - PhD Associate Professor @ LIFL / IRCICA (France) http://www.lifl.fr/~marvie/ Phone: +33 3 2877 8583 |