We encountered the same issue this week at work with inline templates. Looks like Durandal doesn't play well with inline template.
Our solution as been to use external template, stored in file beside the main file, and then call them with the following line :
<!-- ko compose: { view: 'path/' + templateToUse + '.html', model: yourModel } -->
Might not be elegant but at least it's working.
Let me know if it sort out your problem :)