added support for templated tag attributes