added support for rendering attributes on data-template element