 
     @editorViews.variables = @variablesView = new VariablesView {
       delegate: this
-      stackTemplate
-    }
+    }, data
     @tabView.addPane variablesPane = new kd.TabPaneView
       name : 'Custom Variables'
       view : @variablesView
 
-    @editorViews.readme = @readmeView = new ReadmeView { stackTemplate }
+    @editorViews.readme = @readmeView = new ReadmeView {}, data
     @tabView.addPane readmePane = new kd.TabPaneView
       name : 'Readme'
       view : @readmeView

    ]

    title = Encoder.htmlDecode kd.singletons.reactor.evaluate valueGetter
    cssClass = unless @isMine then 'template-title isntMine' else 'template-title'
    options =
      cssClass: cssClass
      autogrow: yes
      defaultValue: title or generatedStackTemplateTitle
      bind: 'keyup'
      attributes:
        disabled: not @isMine
      keyup: (e) ->
        { changeTemplateTitle } = EnvironmentFlux.actions
        changeTemplateTitle stackTemplate?._id, e.target.value

    @header.addSubView @inputTitle = new kd.InputView options



    super options, data

    @isMine = yes
    kd.singletons.groupsController.ready =>

      { groupsController } = kd.singletons
      @isMine = stackTemplate?.isMine() or groupsController.canEditGroup()

      unless @isMine
        @tabView.setClass 'StackEditorTabs isntMine'
        @warningView.show()
        @secondaryActions.hide()
        @saveButton.hide()
        @inputTitle.setClass 'template-title isntMine'



    @setClass 'edit-mode'  if inEditMode = @getOption 'inEditMode'

