{"categories":[{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"},{"label":"XML","url":"https://skillfed.io/packages/category/text-processing-markup-xml"}],"enrichment":{"capability":"z3c.pt is a fast ZPT (Zope Page Template) engine that compiles templates to bytecode using Chameleon, providing page template rendering with path expressions and TALES support.","skillfed_tags":["zope-ecosystem","template-engine","bytecode-compilation"],"use_cases":["Rendering HTML templates in Zope 3 web applications with TAL expressions and automatic bytecode compilation for performance.","Building view templates that bind to Zope view objects and have access to request and context in a single property.","Implementing custom TALES namespace adapters for domain-specific template functions and path traversal logic.","Migrating from zope.pagetemplate to a faster engine without changing template syntax or application code.","Serving dynamic content with content-type negotiation (HTML, XML, RDF) based on template or request headers."],"what_it_does":"z3c.pt is a template engine for Zope 3 applications that renders page templates (ZPT) by compiling them to bytecode via Chameleon. It provides the same application-level interface as zope.pagetemplate but with faster execution through bytecode compilation. The package supports TAL (Template Attribute Language) and TALES (Template Attribute Language Expression Syntax) for dynamic template logic, including path expressions, Python expressions, and custom namespace adapters.\n\nThe package offers two main template classes: PageTemplate for string-based templates and PageTemplateFile for templates loaded from disk. It also provides ViewPageTemplate and ViewPageTemplateFile variants for use within Zope view classes. Templates can bind to request and context objects, set content types, and support both keyword and positional arguments. It integrates with the Zope component architecture through zope.interface, zope.component, and zope.traversing.","worth_installing":"Yes, if you are building or maintaining a Zope 3 application and need faster template rendering than zope.pagetemplate. The package is stable (Production/Stable status), supports modern Python versions, has no known vulnerabilities, and low install friction. The aging maintenance status and unclear license treatment are minor concerns\u2014review the ZPL terms for your use case and monitor the repository for future updates, but neither blocks adoption for existing Zope projects."},"id":"z3c-pt","links":{"html":"https://skillfed.io/packages/z3c-pt","md":"https://skillfed.io/packages/z3c-pt.md","pypi":"https://pypi.org/project/z3c-pt/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-19","license_spdx":null,"license_treatment":"unclear","name":"z3c.pt","python_support":"supports_current","summary":"Fast ZPT engine."},"popularity":{"monthly_downloads":128229,"position":11716,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"5.1"}
