• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nette / latte / 29701425453

19 Jul 2026 07:51PM UTC coverage: 94.359% (+0.1%) from 94.22%
29701425453

push

github

dg
{include parent} and {include this} work inside dynamically named blocks

The name of the enclosing block is resolved at runtime from the stack of
blocks being currently rendered, which is shared along the inheritance
chain. Previously this was a compile error, or, when the dynamic block
was nested inside a static one, the include silently bound to the outer
static block.

To be released in 3.1.

20 of 22 new or added lines in 2 files covered. (90.91%)

138 existing lines in 40 files now uncovered.

6273 of 6648 relevant lines covered (94.36%)

0.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/Latte/Compiler/Nodes/Php/InterpolatedStringPartNode.php
1
<?php declare(strict_types=1);
2

3
/**
4
 * This file is part of the Latte (https://latte.nette.org)
5
 * Copyright (c) 2008 David Grudl (https://davidgrudl.com)
6
 */
7

8
namespace Latte\Compiler\Nodes\Php;
9

10
use Latte\Compiler\Node;
11
use Latte\Compiler\Position;
12
use Latte\Compiler\PrintContext;
13

14

15
/**
16
 * Literal part of interpolated string.
17
 */
18
class InterpolatedStringPartNode extends Node
19
{
20
        public function __construct(
1✔
21
                public string $value,
22
                public ?Position $position = null,
23
                public ?Position $end = null,
24
        ) {
25
        }
1✔
26

27

28
        public function print(PrintContext $context): string
29
        {
UNCOV
30
                throw new \LogicException('Cannot directly print InterpolatedStringPart');
×
31
        }
32

33

34
        public function &getIterator(): \Generator
1✔
35
        {
36
                false && yield;
37
        }
1✔
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc