{% import '/cards/macros/note/factory.html.twig' as NoteFactory %} {{ 'Notes related' | trans }} {% for note in related_notes %} {% set args = { 'type': 'vanilla_compact', 'note': note } %} {{ NoteFactory.constructor(args) }} {% endfor %}