Latte\Macros\CoreMacros::macroEndWhile PHP Метод

macroEndWhile() публичный Метод

..}
public macroEndWhile ( MacroNode $node, PhpWriter $writer )
$node Latte\MacroNode
$writer Latte\PhpWriter
    public function macroEndWhile(MacroNode $node, PhpWriter $writer)
    {
        if ($node->data->do) {
            if ($node->args === '') {
                throw new CompileException('Missing condition in {while} macro.');
            }
            return $writer->write('} while (%node.args);');
        }
        return '}';
    }