Compare commits
2 Commits
78f891fbff
...
6fdd25ae4b
Author | SHA1 | Date | |
---|---|---|---|
6fdd25ae4b | |||
754a23706a |
@ -97,8 +97,13 @@ class Linker
|
|||||||
|
|
||||||
fwrite($outputFileHandle, $extra[0]);
|
fwrite($outputFileHandle, $extra[0]);
|
||||||
while (($line = fgets($inputFileHandle)) !== false) {
|
while (($line = fgets($inputFileHandle)) !== false) {
|
||||||
|
if (preg_match('/^\s*@include\((.*)\)\s*$/', $line, $matches) === 1) {
|
||||||
|
$include = file_get_contents(ROOT . '/views/' . $matches[1] . '.php');
|
||||||
|
fwrite($outputFileHandle, $include);
|
||||||
|
} else {
|
||||||
fwrite($outputFileHandle, $line);
|
fwrite($outputFileHandle, $line);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fwrite($outputFileHandle, $extra[1]);
|
fwrite($outputFileHandle, $extra[1]);
|
||||||
|
|
||||||
fclose($inputFileHandle);
|
fclose($inputFileHandle);
|
||||||
|
Loading…
Reference in New Issue
Block a user