Skip to main content

litestar-chameleon

litestar-chameleon lets developers use Chameleon templates in Litestar applications.

Usage

When creating the application:

from litestar.template import TemplateConfig
from litestar_chameleon import ChameleonTemplateEngine

template_config = TemplateConfig(
    engine=ChameleonTemplateEngine,
    directory=templates_dir,
)

app = Litestar(..., template_config=template_config, ...)

When using it in a route:

from litestar.response import Template

@get("/")
async def demo() -> Template:
    return Template(
        "demo.pt",
        context={"title": "...", "body": "..."},
    )

Download files

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

Source Distribution

litestar_chameleon-0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

litestar_chameleon-0.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file litestar_chameleon-0.3.tar.gz.

File metadata

  • Download URL: litestar_chameleon-0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for litestar_chameleon-0.3.tar.gz
Algorithm Hash digest
SHA256 0d12ff35271dd927d5bbfec0f61acb79cf7ba1db48eb1417a722dcf248be3961
MD5 cd50eabe18b7a1a8d7713fe40329512c
BLAKE2b-256 d5e1d73202e4ece14fac7df3f3e9978c240d141f14a1ab61033e79188c8f9146

See more details on using hashes here.

File details

Details for the file litestar_chameleon-0.3-py3-none-any.whl.

File metadata

  • Download URL: litestar_chameleon-0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for litestar_chameleon-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 687e95a4ceb18857722c25781224770ea4fab17c5a9396f56f0e2adc61255fb8
MD5 52ef49c0d5aefd4c47e5aed53c315ca7
BLAKE2b-256 939f5deac25d5749a827e9a6a86da975411f0c413d25cdc88d18b0975c6fba0c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3 This release

2 files

0.2

2 files

0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page