UNPKG

knockout-amd-helpers

Version:

Makes Knockout and AMD modules work better together

9 lines (7 loc) 254 B
define({ template: "<div>I have my own template.</div>", templateFunction: function() { //using "this" to help to verify that it is called with appropriate context return this.template + "<div>(from a function)</div>"; } });