old_contents: "use strict";
  
  angular.module(
    'arethusa', [
      'mm.foundation',
      'ngRoute',
      'arethusa.core',
      'arethusa.morph',
      'arethusa.hist'
    ],
    function($routeProvider) {
      $routeProvider.when('/', {
        controller: 'MainCtrl',
        templateUrl: 'templates/main2.html',
        resolve: {
          loadConfiguration: function($q, $http, $route, configurator) {
            console.log($route.current.params.conf);
            return $http({
              method: 'GET',
              url: $route.current.params.conf || './static/configuration_default.json'
            }).then(function(result) {
              configurator.configuration = result.data;
            });
          }
        }
      }
    );
  });
  
new_contents: "use strict";
  
  angular.module(
    'arethusa', [
      'mm.foundation',
      'ngRoute',
      'arethusa.core',
      'arethusa.morph',
      'arethusa.hist'
    ],
    function($routeProvider) {
      $routeProvider.when('/', {
        controller: 'MainCtrl',
        template: '<div ng-include="template"></div>',
        resolve: {
          loadConfiguration: function($q, $http, $route, configurator) {
            return $http({
              method: 'GET',
              url: $route.current.params.conf || './static/configuration_default.json'
            }).then(function(result) {
              configurator.configuration = result.data;
            });
          }
        }
      }
    );
  });
  
subject: Make main template really configurable again