Skip to main content

A small static site generator powered by KDL and Jinja2.

Project description

kdlj2-web

An example of using Jinja2 and KDL as building blocks to build robust, possibly dynamic website markup and interpolation pipelines with a friendly syntax.

This example is very small. It has a simple file browser (only when using the debug HTTP server), and an example invoices table.

Quick Guide

After installing through pipx or uv or anything else,

  • Put your static assets in static/.

  • Write your page templates in the top level of templates/.

    • Snippets to be used inside pages should go on templates/partials/.
    • Layouts a page should inherit should go on templates/layouts/.
  • Run kdlj2-web to render your pages!

    • As a debug server: python kdlj2-web serve --port=1234
    • To a static file folder: python kdlj2-web build --outdir=my-path/
    • Add custom options: python kdlj2-web --opts theme=dark serve
  • If you want your static and template directories in a different location, you can use the -s argument, like so: python kdlj2-web -s my_webroot/ ...

Copyright

(c)2026 Gustavo Ramos Rehermann (wallabra) gr.wallabra@proton.me.

All code and assets in this project are made available under the Cooperative Non-Violent Public License: about, raw, ScanCode LicenseDB.

Please see LICENSE.md.

Project details


Download files

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

Source Distribution

kdlj2_web-0.1.1.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

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

kdlj2_web-0.1.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file kdlj2_web-0.1.1.tar.gz.

File metadata

  • Download URL: kdlj2_web-0.1.1.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kdlj2_web-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f994b8891ecc6f51941d88f2d441ce158205bc551f30b5e4d7ec419490d62aee
MD5 50eda8cb9e9fee3e8a38164f499d320e
BLAKE2b-256 9ec60feb05b62ff06a68ff0021a85de65092fbd6e031bf90e12789398de0c002

See more details on using hashes here.

File details

Details for the file kdlj2_web-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kdlj2_web-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kdlj2_web-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4538068c7db549124efb70bd4412c9781156e7056c2a8ccd5abf85838b9e5d11
MD5 834f2049076e29adf77195e8167f1310
BLAKE2b-256 c6a1752b89a817760a49af7fca112e33780000073c8847b543409e1990a23756

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