Skip to content
Permalink
Browse files

tests: updated for last Latte

  • Loading branch information
dg committed Feb 23, 2020
1 parent 9bee2c3 commit bbe53383267865b3af927095015f541b8a6245af
@@ -1,11 +1,4 @@
<?php
// source: %A%

class Template%a% extends Latte\Runtime\Template
{

function main()
{
%A%
if (Nette\Bridges\CacheLatte\CacheMacro::createCache($this->global->cacheStorage, '%[\w]+%', $this->global->cacheStack)) {
?> <?php echo %a% ?>
@@ -14,14 +7,3 @@ class Template%a% extends Latte\Runtime\Template
Nette\Bridges\CacheLatte\CacheMacro::endCache($this->global->cacheStack);
}
%A%
}


function prepare()
{
%A%
Nette\Bridges\CacheLatte\CacheMacro::initRuntime($this);
%A%
}

}
@@ -1,11 +1,4 @@
<?php
// source: %A%

class Template%a% extends Latte\Runtime\Template
{

function main()
{
%A%
Noncached content

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

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

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


function prepare()
%a?%function prepare()%a?%
{
%A%
Nette\Bridges\CacheLatte\CacheMacro::initRuntime($this);
%A%
}

}

0 comments on commit bbe5338

Please sign in to comment.
You can’t perform that action at this time.