You would build the ribbon in your controller, since this is more logical then a layout or view.
<?php
use Barebone\RibbonController;
// extend your controller from RibbonController
class ribboncontrollerController extends RibbonController{
// In your Controller create a function init() if you not allready have this.
function init(){
// add your stuff to the ribbon
$filetab = $this->add_ribbon_tab('Bestand');
$filetab_section = $filetab->add_ribbon_section('Files');
$filetab_section->add_ribbon_button('#file-new', 'New file', 'new_file()', '/images/add.png', 'Create a new file');
$filetab_section->add_ribbon_button('#file-open', 'Open file', 'open_file()', '/images/folder.png', 'Open a file');
$filetab_section->add_ribbon_button('#file-save', 'Save file', 'save_file()', '/images/disk.png', 'Save a file');
$barebone_section = $filetab->add_ribbon_section('Barebone');
$barebone_section->add_ribbon_button('#barebone-layout', 'Layout', 'save_file()', '/images/page_code.png', 'New layout');
$barebone_section->add_ribbon_button('#barebone-application', 'Application', 'save_file()', '/images/application_add.png', 'New Application');
$barebone_section->add_ribbon_button('#barebone-controller', 'Controller', 'save_file()', '/images/controller_add.png', 'New Controller');
$barebone_section->add_ribbon_button('#barebone-action', 'Action', 'save_file()', '/images/brick_add.png', 'New Action');
$barebone_section->add_ribbon_button('#barebone-dialog', 'Dialog', 'save_file()', '/images/application_split.png', 'New Dialog');
$barebone_section->add_ribbon_button('#barebone-batchactions', 'Batch actions', 'save_file()', '/images/brick_add.png', 'Batch actions');
$barebone_section->add_ribbon_button('#barebone-model', 'Model', 'save_file()', '/images/plugin_add.png', 'New Model');
$barebone_section->add_ribbon_button('#barebone-blokx', 'Blokx', 'save_file()', '/images/html_add.png', 'New Blokx');
$barebone_section->add_ribbon_button('#barebone-blokx', 'BACK TO SHOWCASE', 'document.location.href=/showcase/', '/images/chart_curve_go.png', 'New Blokx');
$edittab = $this->add_ribbon_tab('Bewerken');
$edittab_section = $edittab->add_ribbon_section('Tools');
$edittab_section->add_ribbon_button('#edit-cut', 'Cut', 'cut()', '/images/cut.png', 'Create a new file');
$edittab_section->add_ribbon_button('#edit-copy', 'Copy', 'copy()', '/images/page_copy.png', 'Open a file');
$edittab_section->add_ribbon_button('#edit-past', 'Paste', 'paste()', '/images/page_paste.png', 'Save a file');
}
}