Skip to content

Commit 633874b

Browse files
committed
tests: compatibility with Latte master
1 parent 7ee1327 commit 633874b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/Bridges.Latte/expected/UIMacros.snippet.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ class Template%a% extends Latte\Template
1919
if (Nette\Bridges\ApplicationLatte\UIRuntime::initialize($this, $this->blockQueue)) return;
2020

2121
// main template
22-
?>
23-
24-
<?php
2522
if ($this->tryRenderParent(get_defined_vars())) return;
2623
?><div id="<?php echo $_control->getSnippetId('') ?>"><?php call_user_func(reset($this->blockQueue['_']), $this->params) ?></div>
2724

@@ -53,7 +50,9 @@ class Template%a% extends Latte\Template
5350
extract($_args);
5451
$_control->redrawControl('', FALSE);
5552

53+
?>
5654

55+
<?php
5756
}
5857

5958

@@ -62,7 +61,8 @@ class Template%a% extends Latte\Template
6261
extract($_args);
6362
$_control->redrawControl('outer', FALSE);
6463

65-
?> Outer
64+
?>
65+
Outer
6666
<div id="<?php echo $_control->getSnippetId('inner') ?>"><?php call_user_func(reset($this->blockQueue['_inner']), $this->params) ?></div> /Outer
6767
<?php
6868
}

tests/Bridges.Latte/expected/UIMacros.snippet4.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class Template%a% extends Latte\Template
4949
extract($_args);
5050
$_control->redrawControl('outer', FALSE);
5151

52-
?>begin
52+
?>
53+
begin
5354
end
5455
<?php
5556
if (isset($this->local->dynSnippets)) return $this->local->dynSnippets;

0 commit comments

Comments
 (0)