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.19.0.tar.gz (33.9 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.19.0-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hedron_jinja-0.19.0.tar.gz
  • Upload date:
  • Size: 33.9 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

Hashes for hedron_jinja-0.19.0.tar.gz
Algorithm Hash digest
SHA256 43d6d0b8aaafa0070870afeb483ac000f8d6e4428b737c0f13778c33e3efaca6
MD5 b6b752b44b46826e27eafbc6e24bc71f
BLAKE2b-256 d71b791fdfa5274198bef8af18553106586ed2b5f89180d5566f52794c505c69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hedron_jinja-0.19.0-py3-none-any.whl
  • Upload date:
  • Size: 37.5 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

Hashes for hedron_jinja-0.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65ac722a645ebf1fc50686e1cb257ff7ef7676d89bf58744930ab7f8fd8d4076
MD5 f845d3c24d148c13b95e5d52645c91e0
BLAKE2b-256 b8d93acb6273ca35c162836fb8b09d262d4a44b35910c243c449118337c8c517

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