   setReadOnly: ->
     @setClass 'readonly'
     @editorView.aceView.ace.editor.setReadOnly yes
+

kd                      = require 'kd'
KDButtonView            = kd.ButtonView
Encoder                 = require 'htmlencode'
curryIn                 = require 'app/util/curryIn'
StackTemplateEditorView = require './stacktemplateeditorview'


module.exports = class StackTemplateView extends kd.View

      content = null

    delegate = @getDelegate()
    @searhText = null
    if @canUpdate
      @addSubView new StackScriptSearchView

    @addSubView @editorView = new StackTemplateEditorView {
      delegate: this, content, contentType, showHelpContent
