Since Knockout's individual templates are kept in script tags, I thought that I could set the src attribute of the tag and load the HTML from a separate file. Doing so naïvely simply didn't work, so either

  1. There's some trick to getting the binding of templates to work with src tag that I need to use
  2. There's a different way to load templates from different files

(The other two possibilities -- 3, all the programmers on this project are expected to modify the same gigantic file, which will be loaded by the browser on start-up, and 4, don't use Knockoutjs for anything larger than a toy project -- I consider equivalent.)

Edit
Report