mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Docs #209 [ru]
This commit is contained in:
@ -1044,4 +1044,15 @@ class Compiler
|
||||
}
|
||||
return 'unset('.implode(", ", $unset).')';
|
||||
}
|
||||
|
||||
public static function tagPaste(Tokenizer $tokens, Tag $tag)
|
||||
{
|
||||
$name = $tokens->get(T_CONSTANT_ENCAPSED_STRING);
|
||||
$tokens->next();
|
||||
if(isset($tag->tpl->blocks[$name])) {
|
||||
return "?>".substr($tag->tpl->blocks[$name]["block"], 1, -1)."<?php ";
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user