vendor/assets/javascripts/poirot-base/poirot.js in poirot-0.2.1 vs vendor/assets/javascripts/poirot-base/poirot.js in poirot-0.2.2
- old
+ new
@@ -11,10 +11,10 @@
_viewFactory: viewFactory
}
$(document).ready(function () {
$('script[type="text/mustache"]').each(function () {
- var template = $(this).text()
+ var template = $(this).html()
var methodName = this.id.replace(/-([a-z])/g, function (str) {
return str.replace("-", "").toUpperCase()
}).replace("Template", "")
poirot._partials[methodName] = template
\ No newline at end of file