Hello,

I have a question for you all :-)

I have some code that uses a switch statement for display of content. Problem 
is, this content is different for MANY different situations and I am currently 
displaying like so...

SWITCH someVAL
CASE "someval1"  PROCESS some_block_correspondingInfo
CASE "someval2"  PROCESS some_block_correspondingInfo2

etc..

but I can reduce my code by a huge amount if I can somehow PROCESS call to the 
string that comes in IF my string is the same name as my BLOCK.. ala.

PROCESS eval($someVAL)

does that make sense? this way I can name my blocks the same as the "someVals" 
across my site and just process to it?


thanks -





      
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to