See the source code to see how the html templates are packed inside .js files.
NB: Knockout is customized in this example, to support in memory-HTML templates ko-template-engine.js.