mirror of
https://github.com/jcreek/phldnhack.git
synced 2026-07-12 18:43:43 +00:00
added server
This commit is contained in:
+15
-3
@@ -1,11 +1,23 @@
|
||||
(function(Ractive){
|
||||
$(document).ready(function(){
|
||||
|
||||
Ractive.components.home = Ractive.extend({
|
||||
Ractive.components.home = Ractive.extend({
|
||||
template:'#home'
|
||||
});
|
||||
|
||||
|
||||
$.getJSON('/sample', function(res){
|
||||
|
||||
var ractive = new Ractive.components.home({
|
||||
el:'#load',
|
||||
data:res
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
//Code below here
|
||||
|
||||
})(Ractive);
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user