(function(){
  var app = angular.module("site", ["ngRoute"]);

  app.controller("NavController", function($location){
    this.isActive = function(viewLocation){
      return viewLocation === $location.path();
    }
  });


  app.config(function($routeProvider, $locationProvider){
    $routeProvider
      .when("/home",{
        templateUrl: "home.html",
        controller: "HomeController as HomeCtrl"
      })
      .when("/creator",{
        templateUrl: "creator.html",
        controller: "CharCreatorController as creatorCtrl"
      })
      .otherwise({redirectTo:"./home"});
      $locationProvider.html5Mode(true);
    });
  }()
);

(function(){
  var app = angular.module("site", ["ngRoute"]);

  app.controller("NavController", function($location){
    this.isActive = function(viewLocation){
      return viewLocation === $location.path();
    }
  });


  app.config(function($routeProvider, $locationProvider){
    $routeProvider
      .when("./home",{
        templateUrl: "home.html",
        controller: "HomeController as HomeCtrl"
      })
      .when("./creator",{
        templateUrl: "creator.html",
        controller: "CharCreatorController as creatorCtrl"
      })
      .otherwise({redirectTo:"./home"});
      $locationProvider.html5Mode(true);
    });
  }()
);

Revert "Try commiting straight to gh-pages this time"
Revert "Try commiting straight to gh-pages this time"

This reverts commit 1ecb01bebf80335b891683c24b2e2dda92cbd28e.
