 
   updateStackTemplate = (data, callback) ->
 
-    { template, credential, title, stackTemplate, machines } = data
+    { template, templateDetails, credential
+      title, stackTemplate, machines } = data
 
     title     or= 'Default stack template'
     credentials = [credential.publicKey]  if credential
 
     if stackTemplate
       dataToUpdate = if machines \
-        then {machines} else {title, template, credentials}
+        then {machines} else {title, template, credentials, templateDetails}
       stackTemplate.update dataToUpdate, (err) ->
         callback err, stackTemplate
     else
       remote.api.JStackTemplate.create {
-        title, template, credentials
+        title, template, credentials, templateDetails
       }, callback
 
 

          cssClass      : 'solid compact green nav next'
          callback      : ->

            {title}  = views.input_title.getData()
            template = views.editorView.getValue()

            updateStackTemplate {
              title, template, credential, stackTemplate
            }, (err, _stackTemplate) ->
              return  if showError err

              callback {
                stackTemplate: _stackTemplate, credential, provider
              }

      return container



      {mainLoader} = views

      fetchRepoFile selected_repo, (err, res) =>

        mainLoader.setTitle 'Parsing template...'

