Hi --
I have a bunch of code that looks vaguely like this:
self.open_edit_modal = function () {
ko.renderTemplate(
"edit-bundle-modal",
self,
{},
$("#my-modal")[0]);
$("#my-modal").modal("show");
};
In other words, I have a bunch of places in my webapp that load a named template defined in a script tag and then render it.
There's hardly any documentation at all on renderTemplate. Is that because we're not really supposed to use it? Is there a more conventional way of loading a named template and then rendering it?
Why isn't renderTemplate better documented?
Matt
PS: I <3 knockout