       template        :
         content       : String
         sum           : String
+        details       : Object
 
       # Public keys of JCredentials
       credentials     : [ String ]
 
 
-  generateTemplateObject = (content)->
-
-    content = ''  unless typeof content is 'string'
+  generateTemplateObject = (content, details) ->
+
+    content  = ''  unless typeof content is 'string'
+    details ?= {}
 
     return {
       content
+      details
       sum: crypto.createHash 'sha1'
         .update content
         .digest 'hex'


  @create = permit 'create stack template',

    success: (client, data, callback)->

      { delegate } = client.connection


        extras      : data.extras      ? []
        connections : data.connections ? []
        accessLevel : data.accessLevel ? 'private'
        template    : generateTemplateObject data.template, data.templateDetails
        credentials : data.credentials ? []

      stackTemplate.save (err)->
