*(cf my comment on line 44)*
I would remove the ``templates`` parameter from the ``displayTemplates`` macro, keep the ``recDisplayTemplates`` macro, and call it from ``displayTemplates`` with: ``{call recDisplayTemplates(data.templates) /}``.