Vous pouvez consulter la page originale sur le site Bootstrap.
Ci-dessous, le même code généré à partir de l'extension Bootstrap de Pho.
<?php
/*
* Bootstrap starter-template http://getbootstrap.com/examples/starter-template/
*
*/
require_once('../classes.php');
$document = new bsDocument();
$document->addStyleSheet('css/starter-template.css');
$navbar = $document->append(new bsNavbar('Project name'));
$navbar->addItems(array(
'Home' => '#',
'About' => '#about',
'Contact' => '#contact',
));
$container = $document->addDiv('container');
$template = $container->addDiv('starter-template');
$template->addHeader(1, 'Bootstrap starter template');
$template->addParagraph('Use this document as a way to quickly start any new project.
All you get is this text and a mostly barebones HTML document.', 'lead');
$document->output();