Skip to main content

hedron-jinja

HDJ is Hedron's explicit, standards-first .hdj format over Jinja for advanced applications.

pip install hedron-jinja
from jinja2 import Environment, FileSystemLoader
from hedron_jinja import HedronJinja, TemplateSpec

templates = HedronJinja(
    Environment(loader=FileSystemLoader("templates")),
    components={"StatusBadge": StatusBadge},
)
result = templates.render(TemplateSpec("dashboard.hdj"), view)
---hdj
version = 1
kind = "fragment"
profile = "standard"
regions = ["main"]
---
<main id="main" hx-history-elt>{{ view.heading }}</main>

Templates are trusted application code. Write ordinary HTML, CSS, JavaScript, Web Components, Jinja, and HTMX directly; HDJ adds typed components and preserves Hedron render metadata. 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 and every source must render through HedronJinja. HDJ is not a sandbox for hostile template authors.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hedron_jinja-0.18.0.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hedron_jinja-0.18.0-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file hedron_jinja-0.18.0.tar.gz.

File metadata

  • Download URL: hedron_jinja-0.18.0.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hedron_jinja-0.18.0.tar.gz
Algorithm Hash digest
SHA256 e3ecf49d74b2fc2f1052b38f86d73aa883bde89af448a365898ead372132134a
MD5 92a4439df7378e1a74be8184ad8b41da
BLAKE2b-256 ae7faf0b49f0c2a7ee911aa3a24b844a603881b5510bad09207d5509cb2ffdc0

See more details on using hashes here.

File details

Details for the file hedron_jinja-0.18.0-py3-none-any.whl.

File metadata

  • Download URL: hedron_jinja-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hedron_jinja-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ed4fbaf2522f1e24e2f7764ff34ebdefaa55350c4e1083e4596ed9cd0db817e
MD5 eeee3656730f8f6d30cedade70fabe1c
BLAKE2b-256 10887aa7c5414bd3995475dfd513167fa26f4af032e01b0bc7a3ffd5511f33e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page