I'd like to use twig templates to display XML data, and I'm not really sure if I'm going about it the best way.
I'm currently generating an xml DOMDocument in PHP and passing that to the template, but at that point the only thing I can think to do go through each document in a loop recreating the tags within the template.
Is there a better way to go about doing this?
Also, how should I set the content type of the page?
I'm not using any kind of framework.
No comments:
Post a Comment