I’m looking for some tips for how I can modularise my frontend code a bit. I’m using flexible fields to build a “page builder” of some kind. I would like to split my template for the frontend, since it becomes quite overwhelming when having many layouts with lot’s of fields, repeaters etc.
I would like to loop through and call a template for each layout. Have anyone done something like this and do you have any tips or suggestions?