Added a little function to help with debugging complex templates.