[Templates] Capturing the output of blocks in hash elements

Clinton Gormley clint@traveljury.com
Wed, 22 Nov 2006 17:01:03 +0100


> Haven't tested, but I bet this works:
> 
>   data = {};
>   data.output = PROCESS my_block;
>   data.other = PROCESS my_other_block;

That does work, but I was hoping to be able to do it in this form:
   data = {
       output => PROCESS my_block;
   }

Just because it is neater and probably a fraction more efficient.


________________________________________________________________________

Clinton Gormley clinton@traveljury.com

www.TravelJury.com - For travellers, By travellers