Remove CfP, add formatting with djlint#37
Merged
Merged
Conversation
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>
joelsa
approved these changes
May 10, 2026
Co-authored-by: Joël Schulz-Andres <joelsa@users.noreply.github.com>
Deploying munich-embedded-website with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.