                 scope.$apply ->
                     ngModel.$setViewValue(files[0])
 
-genericModule.directive('gmFile', ["$parse", gmFileConstructor]);
+
+module = angular.module('greenmine.directives.generic', [])
+module.directive('appVersion', ['version', AppVersionDirective])
+module.directive('uiSelect2', UiSelect2Directive)
+module.directive('uiEvent', ['$parse', UiEventDirective])
+module.directive('uiParsley', ['$parse', '$http', 'url', UiParsleyDirective])
+module.directive('gmFile', ["$parse", GmFileDirective])

            scope.$apply ->
                fn(scope, {$event: evt, $params: params})

genericModule.directive('uiEvent', ['$parse', uiEventConstructor])


uiParsleyConstructor = ($parse, $http, url) -> (scope, elm, attrs) ->
    fn = $parse(attrs.uiParsley)

    onFormSubmit = (valid, event, form) ->



AppVersionDirective = (version) -> (scope, elm, attrs) ->
    elm.text(version)


UiSelect2Directive = ->
    require: "?ngModel"
    restrict: "A"
    link: (scope, elm, attrs, ngModel) ->
