Skip to content

Commit 8770a5e

Browse files
committed
tests: updated for last Latte
1 parent 6712e3d commit 8770a5e

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
<?php
2-
// source: %A%
3-
4-
class Template%a% extends Latte\Runtime\Template
5-
{
6-
7-
function main()
8-
{
92
%A%
103
if (Nette\Bridges\CacheLatte\CacheMacro::createCache($this->global->cacheStorage, '%[\w]+%', $this->global->cacheStack)) {
114
?> <?php echo %a% ?>
@@ -14,14 +7,3 @@ class Template%a% extends Latte\Runtime\Template
147
Nette\Bridges\CacheLatte\CacheMacro::endCache($this->global->cacheStack);
158
}
169
%A%
17-
}
18-
19-
20-
function prepare()
21-
{
22-
%A%
23-
Nette\Bridges\CacheLatte\CacheMacro::initRuntime($this);
24-
%A%
25-
}
26-
27-
}
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
<?php
2-
// source: %A%
3-
4-
class Template%a% extends Latte\Runtime\Template
5-
{
6-
7-
function main()
8-
{
92
%A%
103
Noncached content
114

@@ -17,7 +10,7 @@ Noncached content
1710

1811
<?php
1912
/* line 7 */
20-
$this->createTemplate('include.cache.latte', ['localvar' => 11] + $this->params, "include")->renderToContentType('html');
13+
$this->createTemplate('include.cache.latte', %a%)->renderToContentType('html');
2114
?>
2215

2316
<?php
@@ -27,11 +20,8 @@ Noncached content
2720
}
2821

2922

30-
function prepare()
23+
%a?%function prepare()%a?%
3124
{
3225
%A%
3326
Nette\Bridges\CacheLatte\CacheMacro::initRuntime($this);
3427
%A%
35-
}
36-
37-
}

0 commit comments

Comments
 (0)