picea/src/ControlStructure/ExtendsToken.php
Dave Mc Nicoll bcd49884fc - WIP on RAW token
- WIP on caching interface
- Work done on easing template rendering for the controller
2019-10-04 08:38:11 -04:00

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 "";
}
}