gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

Underscore template with require.js Text plugin #26

Closed taseenb closed 11 years ago

taseenb commented 11 years ago

I cannot make it work with an external html file loaded within the render function as Underscore template (I am using Require.js with its Text plugin). Is there a way to achieve this?

gmac commented 11 years ago

Epoxy reads template markup from a bound element at the time binding are applied. That said, you'd need to pre-render the view's markup with relevant template includes before applying bindings.

taseenb commented 11 years ago

Thank you for the answer. My mistake actually.