{% load knockout %}

var {{ view_model_string }} = function(data) {
    var self = this;

    {{ model_string}}

	{{ model_list_string }}
}

{% load knockout %}
{{ model_string }}
var {{ view_model_string }} = function(data) {
    var self = this;
	{{ model_list_string }}
} // {{ view_model_string }}

move model to global, add class def to end brace