type attributes modified to "text/template"