Currently, the jqueryTmplTemplateEngine requires that the template actually lives in a script tag. This has come up before and I think that it is something that could possibly be addressed in Knockout.
As a workaround, you would currently need to add it to your document. Internally KO uses a function like:
function addTemplate(templateName, templateMarkup) {
document.write("<script type='text/html' id='" + templateName + "'>" + templateMarkup + "</script>");
}
you could add it to your document, in any way that you want. I usually do:
function addTemplate(templateName, templateMarkup) {
$("body").append("<script type='text/html' id='" + templateName + "'>" + templateMarkup + "</script>");
}