UNPKG

knockout-amd-helpers

Version:

Makes Knockout and AMD modules work better together

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