You're passing the raw Backbone.Model
object as data to your template, so you're working with something like
{
_changing: false,
_pending: false,
_previousAttributes: {}
attributes: {
DocumentPath: "",
DocumentName: ""
}
...
}
You probably only want the attributes, which you can obtain via model.toJSON
for example. Try :
var html = this.showImageTemplate(this.model.toJSON());