I currently have multiple <% require %> tags in the template and dont want to move them to page_controller...
can I combine them in the template??
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
No I don't believe you can do that since the template parser will probably choke on the array. You can leave your require statement in the template and put the combined_files call in the Page_Controller. AFAIK it will remove the link to the standard required file and replace with the combined path automatically for you.