Support rendering pages with crumbs
This commit is contained in:
@@ -81,6 +81,12 @@ function EnsureDirectoryOrDie($dir) {
|
||||
|
||||
function RenderResponseToHTML($response) {
|
||||
$html = '';
|
||||
|
||||
$crumbs = $response->getCrumbs();
|
||||
if ($crumbs) {
|
||||
$html .= $crumbs->render();
|
||||
}
|
||||
|
||||
foreach ($response->renderChildren() as $child) {
|
||||
$html .= $child->render();
|
||||
}
|
||||
|
Reference in New Issue
Block a user