Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

This is a simple implementation of a Pyramid IRenderer which renders “TDOM Compatible” Template objects with the tdom library.

Usage

# in main() or subsequent includeme
config.include('pyramid_tdom')

# view callable returns `Template` directly
def welcome_view(request):
    title = "Welcome to TDOM!"
    heading = "Welcome to TDOM!"
    return t'<!doctype html><html><body><head><title>{title}</title><meta chartset="utf8"></head><body><h1>{heading}</h1></body></html>'

config.add_route("welcome", "/welcome")

# set renderer via add_view or dynamically with `@view_config(renderer="tdom")`
config.add_view(welcome_view, route_name="welcome", renderer="tdom", request_method="GET")

Metadata

Release files for pyramid-tdom 0.1a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pyramid-tdom 0.1a0
File Interpreter ABI Platform
pyramid_tdom-0.1a0-py3-none-any.whl Python 3 none any Details

Release files / pyramid_tdom-0.1a0-py3-none-any.whl

Download URL pyramid_tdom-0.1a0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4d1847ac272b8eefc0c744a9574a4a6ddd8c1b63b59f7d894d57977717fbebd
BLAKE2b-256 checksum
How to use checksums
c5384a7a4d4e891cd3cda0746fbea8410ce2eecd6f4f5ba8070919b3534d51d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.1a0 This release

1 release file

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