Added attrs attribute to TemplateElement.