As we know, when using templates, we specify vars like this:
'global_merge_vars' => array(
array(
'name' => 'my first var',
'content' => 'content i want to display'
)
),
This is nice and all, but becomes a pain if I want to use handlebars to display lists of information (arrays) in my email. I have to create a function to parse the list of data to meet this name-content
format criteria. Is there any way around that I'm missing? I'd really like to do something like this:
'global_merge_vars' => array(
array(
'name_of_var' => 'value',
'some_array_name' => $myArray,
'other_array' => $otherArray
)
),