index.js
function setOnBlock(objectName, blockPos){
  switch(blockPos){//check where to add in the structure
    case 'header':
      terminal.header.push(objectName);
      break;
    case 'body':
      terminal.body.push(objectName);
      break;
    case 'footer':
      terminal.footer.push(objectName);
      break; 
  }
}
function setOnBlock(objectName, blockPos){
  switch(blockPos){//check where to add in the structure
    case 'header':
      terminal.header.push(objectName);
      break;
    case 'body':
      terminal.body.push(objectName);
      break;
    case 'footer':
      terminal.footer.push(objectName);
      break; 
  }
}
function setOnBlock ( objectName , blockPos ) { switch ( blockPos ) { //check where to add in the structure case 'header' : terminal . header . push ( objectName ) ; break ; case 'body' : terminal . body . push ( objectName ) ; break ; case 'footer' : terminal . footer . push ( objectName ) ; break ; } }
adds new object to list of print
adds new object to list of print