[Templates] Capturing the output of blocks in hash elements

Clinton Gormley clint@traveljury.com
Wed, 22 Nov 2006 14:38:11 +0100


Hiya

This works:
  output = PROCESS my_block;

This doesn't:
  data = {
    output  => PROCESS my_block,
    other   => PROCESS my_other_block
  };

but instead dies with the error : unexpected token PROCESS

Is there any syntax that will allow this, or do I just have to do:

  output = PROCESS my_block;
  data = {
    output  => output,
  };

thanks

Clint

________________________________________________________________________

Clinton Gormley clinton@traveljury.com

www.TravelJury.com - For travellers, By travellers