If you have to create a Drupal render array, it takes quite a bit of code to come up with one that generates a lot of HTML markup. Therefore, we should introduce some kind of XML markup like the following:
The idea is that you write the XML, place it in a file, the render array is generated in the theme function, modules are allowed to modify this render array to their pleasing and then the final render array is passed through drupal_render resulting in the final HTML.
If you have to create a Drupal render array, it takes quite a bit of code to come up with one that generates a lot of HTML markup. Therefore, we should introduce some kind of XML markup like the following:
The idea is that you write the XML, place it in a file, the render array is generated in the theme function, modules are allowed to modify this render array to their pleasing and then the final render array is passed through
drupal_render
resulting in the final HTML.This goes in conjunction with #50.