<?php Layout::extend('layouts/master'); Layout::input($title, 'string'); Layout::input($body, 'Block'); $navigation = Part::block('parts/navigation');
<?php Layout::input($title, 'string'); Layout::input($body, 'Block'); Layout::input($navigation, 'Block', new HtmlBlock()); Layout::input($style, 'Block', new HtmlBlock()); ?> <html> <head> <?php if (!$style->draw()) { Part::draw('parts/style'); } ?> <title>{{appName}} - <?php echo $title; ?> </title> </head> <body> <div class="container"> <div class="span-24"> <h1>{{appName}}</h1> </div> <div class="span-24 last"> <div class="navigation"> <?php echo $navigation; ?> </div> <?php
<?php Layout::extend('layouts/master'); Layout::input($title, 'string'); Layout::input($body, 'Block'); Layout::input($scripts, 'Block', new HtmlBlock()); $title .= ' > Database > '; $navigation = Part::block('layouts/navigation', 'Database');
<?php Layout::extend('layouts/master'); Layout::input($body, 'Block'); Layout::input($title, 'string'); $title .= ' > Home > '; $navigation = Part::block('layouts/navigation', '');
<?php Layout::extend('middle.master'); Layout::input($string, 'string'); $string .= ' middle'; $number = 2;
<?php Layout::input($context, 'string'); echo $context;
<?php Layout::input($string, 'string'); Layout::input($int, 'int'); Layout::input($object, 'ReallyObnoxiousClass'); if ($string == 'foo' && $int == 1 && get_class($object) == 'ReallyObnoxiousClass') { echo 'great success'; } else { echo 'fail.'; }
<?php Layout::input($default, 'string', 'great success'); echo $default;
<?php Layout::input($string, 'string'); Layout::input($number, 'int'); $string .= ' master'; for ($i = 0; $i < $number; $i++) { echo $string; }