I'm creating a template which is supposed to be as generic as possible, in pure twig (.twig files only, no php code). My main goal is now, when I have a given directory X, like:
X/
X/file1.twig
X/file2.twig
X/file3.twig
I then use another target file Y where I include all of the files of the directory X. I want that to be as generic as possible, meaning that if I for example add a file4.twig in X, it should be included in the target file Y automatically. For this, I need some kind of file iterator in twig. Is this available?