examples/browser/app.js
function getFile() {
    var file = grout.Project('test', 'scott').File({key: 'index.html', path: 'index.html'});
    console.log('fbUrl', file.fbUrl);
    console.log('fbRef', file.fbRef);
    file.get().then(function(app){
      console.log('file loaded:', app);
      document.getElementById("output").innerHTML = JSON.stringify(app);
    });
  }
function getFile() {
    var file = grout.Project('test', 'scott').File({key: 'index.html', path: 'index.html'});
    console.log('fbUrl', file.fbUrl);
    console.log('fbRef', file.fbRef);
    file.get().then(function(app){
      console.log('file loaded:', app);
      document.getElementById("output").innerHTML = JSON.stringify(app);
    });
  }
function getFile ( ) { var file = grout . Project ( 'test' , 'scott' ) . File ( { key : 'index.html' , path : 'index.html' } ) ; console . log ( 'fbUrl' , file . fbUrl ) ; console . log ( 'fbRef' , file . fbRef ) ; file . get ( ) . then ( function ( app ) { console . log ( 'file loaded:' , app ) ; document . getElementById ( "output" ) . innerHTML = JSON . stringify ( app ) ; } ) ; }
Get single file content
Get single file content