 # BasicModelView always updates and is therefore only OK for basic templates
 # that are not nested or involving forms.
 class BasicModelView extends Backbone.View
+    get_template: =>
+      template = @template or @options.template
+      if @className isnt template
+        throw 'BasicModelView : error : templates should be named after the semantic class (className: ' + @className + ', template: ' + template + ')'
+      template
+
     render: =>
       if @options.models
         context = {}

        model: @model.toJSON()
        cid: @model.cid
        url: @model.url
      template_result = render (@template or @options.template), context
      @$el.html(template_result)

      # Put the children back in their place

      @render()
  
    initialize: =>
      super
      @listenToOnce @model, 'change', @rerender
  
