Example #1
0
 static function lex($block)
 {
     $view = static::getView($block);
     $attributes = static::getAttributes($block);
     $children = Template::lex($block);
     return compact('view', 'attributes', 'children');
 }
Example #2
0
 static function lex($block)
 {
     extract(static::getTokens($block));
     $node = Block::lex($node);
     $children = Template::lex($block);
     return compact('bool', 'statement', 'node', 'children');
 }
Example #3
0
 static function lex($block)
 {
     $section = static::getSection($block);
     $content = static::getContent($block);
     $children = Template::lex($block);
     return compact('section', 'content', 'children');
 }
Example #4
0
 static function lex($block)
 {
     extract(static::getTokens($block));
     $node = Block::lex($node);
     $children = Template::lex($block);
     return compact('iterable', 'individual', 'node', 'children');
 }
Example #5
0
 static function lex($block)
 {
     $tagName = static::getTagName($block) ?: static::DEFAULT_TAG_NAME;
     $identifiers = static::getIdentifiers($block);
     $attributes = static::getAttributes($block, $identifiers);
     $content = static::getContent($block);
     $children = Template::lex($block);
     return compact('tagName', 'attributes', 'content', 'children');
 }