- WIP on caching interface - Work done on easing template rendering for the controller
18 lines
369 B
PHP
18 lines
369 B
PHP
<?php
|
|
|
|
namespace Picea\ControlStructure;
|
|
|
|
class ExtendsToken implements ControlStructure {
|
|
|
|
public string $token = "extends";
|
|
|
|
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $path, string $token) {
|
|
# Triming string's quotes
|
|
$path = trim($path, "\"\' \t");
|
|
|
|
$context->extendFrom = $path;
|
|
|
|
return "";
|
|
}
|
|
}
|