src/AbstractTemplate.php
public function insetIf(bool $condition, string $block, array $vars = null): string
    {
        return $condition ? trim($this->make($block, $vars)) . PHP_EOL : PHP_EOL;
    }
public function insetIf(bool $condition, string $block, array $vars = null): string
    {
        return $condition ? trim($this->make($block, $vars)) . PHP_EOL : PHP_EOL;
    }
public function insetIf ( bool $ condition , string $ block , array $ vars = null ) : string { return $ condition ? trim ( $ this -> make ( $ block , $ vars ) ) . PHP_EOL : PHP_EOL ; }
Renders a partition if condition is true.

@param bool   $condition The condition.
@param string $block     The partition name.
@param array  $vars      Partition variables.

@return string Rendered content.
Renders a partition if condition is true .