       console.log 'CreateModuleView was opened!'
       @modalPanel.show()
 
+
   CreateModule: (options)->
+    switch options.createType
+      when 'empty' then @CreateEmptyModule options
+      when 'simple' then @CreateSimpleModule options
+      when 'template' then @CreateTemplateModule options
+
+
+  CreateEmptyModule: (options) ->
     console.log options
     info = options.moduleInfo
     filePath = pathM.join info.modulePath,info.moduleId

        if isSuccess is yes
          configFile.setEncoding('utf8')
          console.log 'CreateModule Success'
          # configFile.writeSync(configFileContent)
          cb = (err) =>
            console.log err
          Util.writeJson(configFilePath,configFileContent,cb)

      .then (isSuccess) =>
        if isSuccess is yes
          entryFile.writeSync(htmlString)
          @addProjectModule info
          isInProject = false
          atom.project.getDirectories().forEach (dir) =>
