Lazy load all content, keep it off the memory.

fixes #443
This commit is contained in:
Stéphane Goetz
2017-06-06 23:16:45 +02:00
parent 21c0211f0d
commit 6b5d395ca3
4 changed files with 29 additions and 33 deletions

View File

@ -121,10 +121,6 @@ class Generator implements \Todaymade\Daux\Format\Base\Generator
'page' => ContentPage::fromFile($node, $params, $contentType),
];
// As the page is lazily generated
// We do it now to fail fast in case of problem
$data['page']->getContent();
if ($key == 'index.html') {
$final['title'] = $this->prefix . $tree->getTitle();
$final['file'] = $node;