With this code, if the reference ``data.templates`` changes after the first display, we keep an old reference to ``data.templates`` for all future refreshes of the section. I have not checked if the reference can actually change, but, in my opinion, it would be better not to pass ``data.templates`` as a parameter and read it directly inside the ``displayTemplates`` macro with ``{var templates = data.templates /}``.