Make debug panel work for templates.