Debugging a large template file

Your problem looks like it is using minus (-) in variable names. The only non-alphanumeric allowed on variable names is underscore (_).

Cheers,
Alex