- Small refractoring of code, merge tokens
- Completed block token
This commit is contained in:
1 parent
bf3816c3db
commit
ce4ef6351a
21 files changed
+370
-194
No files matched your search
+5
-1
@@ -45,8 +45,12 @@ class Compiler
|
||||
$this->sourceCode = preg_replace_callback($replace, function ($matches) use (&$context) {
|
||||
$matches[2] = trim($matches[2]);
|
||||
|
||||
|
||||
|
||||
list($token, $arguments) = array_pad(array_filter(explode(' ', $matches[2], 2), 'strlen'), 2, null);
|
||||
|
||||
|
||||
$token = trim($token);
|
||||
|
||||
# @TODO Refractor this parts to allows registration to the tag's name
|
||||
if ( $this->tagList[$token] ?? false ) {
|
||||
return $this->tagList[$token]->parse($context, $arguments, $token);
|
||||
|
||||
Reference in new issue
Block a user