mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Done #80
This commit is contained in:
@ -1007,4 +1007,19 @@ class Compiler
|
||||
{
|
||||
$tag->tpl->ignore('ignore');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tag {unset ...}
|
||||
* @param Tokenizer $tokens
|
||||
* @param Tag $tag
|
||||
* @return string
|
||||
*/
|
||||
public static function tagUnset(Tokenizer $tokens, Tag $tag)
|
||||
{
|
||||
$unset = [];
|
||||
while($tokens->valid()) {
|
||||
$unset[] = $tag->tpl->parseVariable($tokens);
|
||||
}
|
||||
return 'unset('.implode(", ", $unset).')';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user