mirror of
https://github.com/jcreek/phldnhack.git
synced 2026-07-13 02:53:44 +00:00
test
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user