Thanks for your inquiry. It seems you are populating data in foreach block of mustache template. Please check the PHP code in this documentation article. You may also test the API directly in your browser.
Furthermore, please note POST /words/{name}/executeTemplate works with Mustache Templates and POST /words/{name}/executeMailMerge works with MailMerge templates.
Hopefully, it will help you to accomplish the task. However, if there is any difference in your requirement and our understanding, then please share your sample input document, data and expected output document here. We will look into these and will guide you accordingly.
We are revisiting the issue now and we can see that the documentation article you are referring to is deleted. Can we find it under a new link that you could share with us?
We are sorry for your inconvenience. Actually, since Aspose.Words Cloud 19.5 release, we have merged ExecuteMailMerge and ExecuteTemplate APIs. Now ExecuteMailMerge API works for both type of templates.
Furthermore, please note updated functionality is available in V4 API version.
Please find attached sample Foreach Mustache document along with the data. Hopefully it will help you to start with the Foreach. Please feel free to contact us for any further assistance. SampleExecuteTemplate.zip (50.0 KB)