emberjs/ember.js — pull request #318 by busyloop (2011-12-30 07:54:16+00:00)
Title: Store data-attributes with template.

For named templates this stores the data-attributes of the
<script>-tag in the 'data_attr'-property of the generated template.

Previously any custom attributes set by the user would be lost as Handlebars.bootstrap remove()s the template-elements during initialization. There are however scenarios where annotating the templates with custom attributes is very useful (I'm using them to add routing hints), thus this patch to retain them.

The test-suite passes. I didn't write a specific test yet because of #317.