This commit is contained in:
Joe Reeve
2015-11-07 14:39:44 +00:00
parent 1765a42699
commit 78b893b5f7
17 changed files with 64 additions and 62 deletions
+23
View File
@@ -0,0 +1,23 @@
$(document).ready(function(){
Ractive.components.home = Ractive.extend({
template:'#home'
});
$.getJSON('/sample', function(res){
var ractive = new Ractive.components[location.pathname.split('/')[1]]({
el:'#load',
data:res
});
});
//Code below here
});