2011-11-06 07:14:33 -08:00
|
|
|
var snipt = {
|
|
|
|
module: function() {
|
|
|
|
var modules = {};
|
|
|
|
|
|
|
|
return function(name) {
|
|
|
|
if (modules[name]) {
|
|
|
|
return modules[name];
|
|
|
|
}
|
|
|
|
|
2012-02-24 17:45:00 -08:00
|
|
|
return modules[name] = {};
|
2011-11-06 07:14:33 -08:00
|
|
|
};
|
|
|
|
}()
|
|
|
|
};
|
|
|
|
|
|
|
|
jQuery(function($) {
|
|
|
|
|
2012-02-24 17:45:00 -08:00
|
|
|
var SiteView = snipt.module('site').SiteView;
|
2012-01-25 16:39:38 -08:00
|
|
|
window.site = new SiteView();
|
2011-11-06 07:14:33 -08:00
|
|
|
|
|
|
|
});
|
2013-05-08 21:38:24 -07:00
|
|
|
|
|
|
|
// Angular app init.
|
|
|
|
(function() {
|
|
|
|
|
2013-05-08 21:53:33 -07:00
|
|
|
var root = this;
|
2013-05-08 21:38:24 -07:00
|
|
|
|
2013-05-08 21:53:33 -07:00
|
|
|
// App definition.
|
|
|
|
var app = angular.module('Snipt', [], function($locationProvider) {
|
|
|
|
$locationProvider.html5Mode(true);
|
|
|
|
});
|
2013-05-08 21:38:24 -07:00
|
|
|
|
2013-05-08 21:53:33 -07:00
|
|
|
// Use non-Django-style interpolation.
|
|
|
|
app.config(function($interpolateProvider) {
|
2013-05-08 21:59:28 -07:00
|
|
|
$interpolateProvider.startSymbol('{[{');
|
|
|
|
$interpolateProvider.endSymbol('}]}');
|
2013-05-08 21:53:33 -07:00
|
|
|
});
|
2013-05-08 21:38:24 -07:00
|
|
|
|
2013-05-08 21:53:33 -07:00
|
|
|
root.app = app;
|
2013-05-08 21:38:24 -07:00
|
|
|
|
|
|
|
}).call(this);
|