ifandelse/Knockout.js-External-Template-Engine — Issue #16: Unable to override templateUrl in data-bind
Author: genereddick
Created: 2012-02-27 20:09:46+00:00
State: open

While I can set a default templateUrl which is correctly picked up:

infuser.defaults.templateUrl = "/templates";

The following data-bind call loads the foo file from the '/templates' folder and binds it:

However, if I attempt to override the templateUrl in the data-bind attribute, calling the same file but now from a subfolder '/templates/subfolder' it is ignored and attempts to load the file from the default folder. Removing the default setting causes it to look for the file in the root of the directory: