Add inspect method for the templates.