 
   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
 
 


      {mainLoader} = views

      fetchRepoFile selected_repo, (err, template) =>

        mainLoader.setTitle 'Parsing template...'


                     a valid template path like described
                     <a href=learn.koding.com target=_blank>here</a>."

        else if res?.content?

          content   = atob res.content
          template  = analyzeTemplate content
          {message} = template
          template.details = res

          if template.valid then @addTo container,
            button        :
