Skip to main content

Support for Chameleon templates in Litestar.

Project description

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": "..."},
    )

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

litestar_chameleon-0.2.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.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: litestar_chameleon-0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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.2.tar.gz
Algorithm Hash digest
SHA256 43b71d54d1484eb24685f4f07acc6016f6ec43ee9b1b90ce2a053e2559cd8e4f
MD5 f5aa9ee8c1b736373047ddcacb00158d
BLAKE2b-256 501f115b0fd71abfd8e2398445715ae01f04c1c245cfb81c353615578e4a4dcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litestar_chameleon-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c29cd733506cfe724d05fc74f740bc5d3ef8fb85b0ae2ba93286f2504047b94
MD5 f8a58fcb27b77e2efe6a6cd924bc723d
BLAKE2b-256 583e6e6dda5941a1c8e26739a22773cf0f47fa66f4259cf35fd95ff39c5a6475

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