hedron-jinja
Explicit standards-first .hdj templates over Jinja, HTML, and HTMX for Hedron.
HDJ lets advanced applications write ordinary HTML, CSS, JavaScript, Web
Components, Jinja, and HTMX directly while preserving typed Hedron components and
render metadata. Install as hedron-jinja or via the flagship extra hedron[jinja].
Package maturity: Beta · Train: 0.20.0 (Published) · pin >=0.20.0,<0.21
Install
pip install "hedron-jinja>=0.20.0,<0.21"
# or
uv add "hedron-jinja>=0.20.0,<0.21"
# via flagship:
pip install "hedron[jinja]>=0.20.0,<0.21"
Requires Python 3.11–3.14, hedron-core, and Jinja2.
Quick start
from jinja2 import Environment, FileSystemLoader
from hedron_jinja import HedronJinja, TemplateSpec
templates = HedronJinja(Environment(loader=FileSystemLoader("templates")))
result = templates.render(
TemplateSpec("dashboard.hdj"),
{"heading": "Operations"},
)
print(result.html)
Example templates/dashboard.hdj:
---hdj
version = 1
kind = "fragment"
profile = "standard"
regions = ["main"]
---
<main id="main" hx-history-elt>{{ view.heading }}</main>
Trust model
Templates are trusted application code, not a sandbox for hostile authors.
Strict mode checks a finite dynamic sink matrix with purpose-specific URL
filters. Deployment capability declarations and application policy remain
separate and authoritative. Format v1 accepts static .hdj dependencies only;
every source must render through HedronJinja.
Links
- Package docs
- HDJ authoring guide
- Jinja / HDJ API
- Changelog
- Source
- Issues
- HDJ progressive examples
hedron-core·hedron
License
MIT. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hedron_jinja-0.20.0.tar.gz.
File metadata
- Download URL: hedron_jinja-0.20.0.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9d2aa157e8fb4bb572355a501b537e2ef0b61641cecfd6714aad229aa45a3f2
|
|
| MD5 |
ba1d77d81a6c459144826e25e37cdea5
|
|
| BLAKE2b-256 |
523f4b8647ab0e9811ab89a49827407c56d1bc0a7b40fb825d7b9ab1b389e27e
|
File details
Details for the file hedron_jinja-0.20.0-py3-none-any.whl.
File metadata
- Download URL: hedron_jinja-0.20.0-py3-none-any.whl
- Upload date:
- Size: 38.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abf2024f4e275f11203ee0c3ea02dbda36add9b1de340884fa93558e967c698a
|
|
| MD5 |
5912562b3a73a2a4bd1cd90bb7eeea0d
|
|
| BLAKE2b-256 |
e30c2daa7ef7a961036e6e0e11f5eab5ecf166331636e7ace643299136b1f13b
|