Skip to content

Remove CfP, add formatting with djlint#37

Merged
JuliDi merged 6 commits into
mainfrom
julian/remove-cfp
May 11, 2026
Merged

Remove CfP, add formatting with djlint#37
JuliDi merged 6 commits into
mainfrom
julian/remove-cfp

Conversation

@JuliDi
Copy link
Copy Markdown
Contributor

@JuliDi JuliDi commented May 10, 2026

This PR removes the links to the CfP and the deadline from the website.

I also asked Claude to find a formatter that works with tera templates. And djlint seems to do. So we have this now as well, along with hopefully more legible html files.

JuliDi and others added 5 commits May 8, 2026 18:04
djlint (https://www.djlint.com) is a Python tool purpose-built for
Jinja-style templates. Tera shares Jinja syntax, so the `jinja` profile
formats these templates correctly without the attribute-wrapping bugs
that affect prettier-plugin-jinja-template (it would eat the leading
space inside `class="...{% if %} underline ...{% endif %}"` and rewrap
text inside the og:description `{% block %}` content).

- .djlintrc: jinja profile, 4-space indent, max_line_length 160 so long
  paragraph content wraps after the opening `>`. max_attribute_length is
  bumped to 500 to keep the codebase's existing single-line-per-tag style
  (djlint's default would split tags onto attribute-per-line).
- justfile: `format` and `format-check` recipes; per-recipe descriptions
  added throughout.
- README: adds a Formatting Templates section.
- .gitignore: just `public/` (no node_modules — djlint comes from brew).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Output of `just format`. Mechanical changes only — no semantics altered:

- macro bodies indented one level deeper inside `{% macro %}`/`{% endmacro %}`
- void elements get the trailing self-close (e.g. `<meta>` → `<meta />`)
- duplicate trailing whitespace and blank lines collapsed
- inline default-value strings in iframe.html switch to single quotes to
  resolve the previous nested-double-quote pattern that wasn't valid HTML

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
djlint --reformat exits 1 whenever it rewrites a file (so CI can detect
drift). For local use, `just format` should not look like a failure
after it does its job. format-check still bubbles up the exit code,
which is what CI should call.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`just --list` only renders the comment line directly above each recipe
as its description. Multi-line comments meant `format` and `lychee`
showed implementation notes ("djlint exits 1 …", "common non-2xx
responses…") instead of a useful summary. Moved the implementation
detail above the one-line summary.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JuliDi JuliDi requested a review from joelsa May 10, 2026 11:43
@JuliDi JuliDi self-assigned this May 10, 2026
@JuliDi JuliDi added the enhancement New feature or request label May 10, 2026
Comment thread templates/index_en.html Outdated
Comment thread justfile Outdated
Co-authored-by: Joël Schulz-Andres <joelsa@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying munich-embedded-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 41a364f
Status: ✅  Deploy successful!
Preview URL: https://f6a4cafc.munich-embedded-website.pages.dev
Branch Preview URL: https://julian-remove-cfp.munich-embedded-website.pages.dev

View logs

@JuliDi JuliDi merged commit 0e94b75 into main May 11, 2026
2 checks passed
@JuliDi JuliDi deleted the julian/remove-cfp branch May 11, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants