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

nette / latte
94%

Build:
DEFAULT BRANCH: master
Repo Added 25 Jan 2021 12:20AM UTC
Files 183
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • 3.1.4
  • dedent-preserve-structural-indentation
  • next
  • v2.10
  • v2.10.10
  • v2.11
  • v2.11.7
  • v2.5
  • v2.6
  • v2.7
  • v2.8
  • v2.9
  • v3.0
  • v3.0.10
  • v3.0.11
  • v3.0.11-RC1
  • v3.0.12
  • v3.0.13
  • v3.0.14
  • v3.0.15
  • v3.0.16
  • v3.0.17
  • v3.0.18
  • v3.0.19
  • v3.0.20
  • v3.0.21
  • v3.0.22
  • v3.0.23
  • v3.0.24
  • v3.0.25
  • v3.0.9
  • v3.1.0
  • v3.1.1
  • v3.1.2
  • v3.1.3
  • v3.1.4
  • wip

04 Jul 2026 03:15PM UTC coverage: 94.108% (-0.8%) from 94.946%
28710508693

push

github

dg
added |json filter with context-aware encoding

New |json filter (Helpers::encodeJson(), refactored out of escapeJs()
without the HtmlStringable unwrap branch). As the last filter in a chain
it carries a special, context-dependent meaning:

- HTML attribute as a whole value (via ExpressionAttributeNode), e.g.
  `data-x={$arr|json}`, routes to HtmlHelpers::formatJsonAttribute(),
  the same JSON + smart-quoting mechanism used by formatDataAttribute().
- JavaScript context (a <script> element, an on* attribute, or a JS
  content-type template, detected via Escaper::isJavaScript()) drops
  |json in PrintNode: escapeJs() already encodes to JSON there, so the
  filter is redundant and would otherwise double-encode. Dropped only
  when auto-escaping applies, so |json|noescape keeps it.
- Everywhere else (HTML text, XML, ...) |json runs as a regular filter
  and its output passes through the normal escaper, so '<', '>', '&' and
  quotes stay escaped.

Not being last, |json is a plain filter with no special handling. Both
nodes special-case it without mutating the AST: they clone the modifier
before removing the filter.

29 of 29 new or added lines in 6 files covered. (100.0%)

11 existing lines in 5 files now uncovered.

6021 of 6398 relevant lines covered (94.11%)

0.94 hits per line

Relevant lines Covered
Build:
Build:
6398 RELEVANT LINES 6021 COVERED LINES
0.94 HITS PER LINE
Source Files on master
  • Tree
  • List 183
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28710508693 master added |json filter with context-aware encoding New |json filter (Helpers::encodeJson(), refactored out of escapeJs() without the HtmlStringable unwrap branch). As the last filter in a chain it carries a special, context-dependent meaning: - HTML... push 04 Jul 2026 03:16PM UTC dg github
94.11
28670472012 master added TagParser::consumeCommaBeforeArguments() push 03 Jul 2026 03:41PM UTC dg github
94.95
28403378028 master added TagParser::consumeCommaBeforeArguments() push 29 Jun 2026 09:19PM UTC dg github
94.93
28400975391 master added TagParser::consumeCommaBeforeArguments() push 29 Jun 2026 08:36PM UTC dg github
94.96
28332467649 master implicit default block for {embed} (#419) push 28 Jun 2026 06:52PM UTC dg github
95.04
27921715138 master implicit default block for {embed} (#419) push 22 Jun 2026 12:01AM UTC dg github
95.04
27920797477 master implicit default block for {embed} (#419) push 21 Jun 2026 11:24PM UTC dg github
95.04
27918632732 master Implicit default block for {embed} (#419) push 21 Jun 2026 09:53PM UTC dg github
95.04
27918590649 master Implicit default block for {embed} (#419) push 21 Jun 2026 09:51PM UTC web-flow github
95.0
25698863745 master added |json filter with context-aware attribute encoding [WIP] In HTML attribute context (via ExpressionAttributeNode), `|json` routes to HtmlHelpers::formatJsonAttribute() which uses the same JSON + smart-quoting mechanism as formatDataAttribute... push 11 May 2026 09:39PM UTC dg github
95.0
See All Builds (1057)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc