- commit
- 493d83035e248c43dff3d65982d3dc8a3fd2c468
- parent
- cd2b38387d4b4bc5196c0e386fae3410d8afbf68
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2018-10-14 11:38
always re-render dynamic pages
Diffstat
| M | index.php | 10 | ++++++++++ |
1 files changed, 10 insertions, 0 deletions
diff --git a/index.php b/index.php
@@ -195,6 +195,15 @@ class Pupupu 195 195 $this->renderAll($verbose, $p); 196 196 } 197 197 } -1 198 -1 199 public function renderDynamic($verbose=false) -1 200 { -1 201 $site = $this->getSite(); -1 202 $dynamic = $site['dynamic'] ?? array(); -1 203 foreach ($dynamic as $path) { -1 204 $this->render($path, $verbose); -1 205 } -1 206 } 198 207 } 199 208 200 209 function uploadView($pupupu, $twig) @@ -252,6 +261,7 @@ function pageView($pupupu, $twig) 252 261 $pupupu->put($path, 'index.yml', $_POST['yml']); 253 262 $pupupu->put($path, 'index.md', $_POST['md']); 254 263 $pupupu->render($path); -1 264 $pupupu->renderDynamic(); 255 265 header('Location: ', true, 302); 256 266 } 257 267 }