Nunjucks

1 program Added 2026-02-12T13:35:08Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit a1d639be4f · authored 2026-02-12T14:36:18+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/nunjucks
LLM (this repo) · 1LinguistWikidata · Q101001102

Extensions claimed by this language

4 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.njklinguistprimary845.4K files
.njxwikidataprimary260 files
.njwikidatasecondary17.7K files
.njkwikidatasecondary845.4K files

Related languages

NSIS (0.14)Nuua (0.14)Links (0.13)NuSMV (0.13)Numbat (0.12)

LLM-contributed programs

Template with loops and macros

Provenance: commit a1d639be4f · authored 2026-02-12T14:36:18+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.njk · added: 2026-02-12T13:35:08Z
{% set items = ['apple', 'banana', 'orange'] %}
<!DOCTYPE html>
<html>
<head>
    <title>{{ title }}</title>
</head>
<body>
    <h1>{{ heading }}</h1>

    {% if items.length > 0 %}
        <ul>
        {% for item in items %}
            <li>{{ loop.index }}: {{ item | capitalize }}</li>
        {% endfor %}
        </ul>
    {% else %}
        <p>No items found.</p>
    {% endif %}

    {% macro button(text, type="button") %}
        <button type="{{ type }}">{{ text }}</button>
    {% endmacro %}

    {{ button("Submit", "submit") }}
</body>
</html>

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
personal-statement.njk · 764 B · ext .njk · seen 162× in SWH
via unique-primary
swh:1:cnt:4c1c4be18ae6abfef87b8b5112246a1e74ab6fff;origin=https://github.com/christopherthomasdesign/dfe-manage-teacher-applications;anchor=swh:1:rev:60531bd06cf7acfe999dcc406868e368471f0c35;path=/app/views/_includes/application/personal-statement.njk
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
{% set vocationKeyHtml %}
  <h3 class="govuk-heading-s govuk-!-margin-bottom-0">Vocation</h3>
  <p class="govuk-hint">Question to candidate: “Why do you want to be a teacher?”</p>
{% endset %}

{% set subjectKnowledgeKeyHtml %}
  <h3 class="govuk-heading-s govuk-!-margin-bottom-0">Subject knowledge</h3>
  <p class="govuk-hint">Question to candidate: “Your knowledge about the subject you want to teach”</p>
{% endset %}

{{ govukSummaryList({
  rows: [{
    key: {
      html: vocationKeyHtml
    },
    value: {
      html: application.personalStatement.vocation | nl2br or "—"
    }
  }, {
    key: {
      html: subjectKnowledgeKeyHtml
    },
    value: {
      html: application.personalStatement.subjectKnowledge | nl2br or "—"
    }
  }]
}) }}

Contribute — propose a file extension

Tell us where to find evidence about Nunjucks (mapped to pl/nunjucks). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Nunjucks/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← NumSym Nuprl →