--- id: zope-pagetemplate version: "6.1" license: ZPL-2.1 license_treatment: unclear maintenance: active --- # zope.pagetemplate — Zope Page Templates License: unclear · Maintenance: active · Downloads: 138.2K/mo ## What it is and what it does zope.pagetemplate is a templating engine built on Template Attribute Language (TAL) and TALES expressions that lets designers work with templates in standard visual editing tools while keeping presentation markup separate from application logic. It has been part of the Zope ecosystem since 2007 and is actively maintained for modern Python versions. The package works by parsing template files and evaluating expressions embedded in template attributes. It depends on a stack of zope libraries (zope.interface, zope.component, zope.tal, zope.tales, zope.i18n, zope.i18nmessageid, and zope.traversing) to handle interface registration, component lookup, TAL parsing, expression evaluation, and internationalization. It is most commonly used within Zope-based applications or projects that need a declarative, attribute-driven templating approach. Use it for: - Building server-side HTML templates in Zope applications where TAL syntax and TALES expressions are the standard. - Separating presentation markup from Python logic in web applications that prioritize designer-friendly template syntax. - Rendering dynamic content with path expressions, string interpolates, and conditional/repetition directives in TAL. - Integrating templates that can be edited in visual design tools (FrontPage, Dreamweaver, etc.) without breaking markup structure. - Implementing macro-based template inheritance and reuse within a Zope component architecture. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. zope.pagetemplate provides a templating system that separates presentation logic from application code using Template Attribute Language (TAL) and TALES expressions, allowing designers to edit templates in visual tools. Yes, if you are working within the Zope ecosystem or need a declarative, attribute-driven templating system compatible with visual design tools. The package is actively maintained, has no known vulnerabilities, and supports current Python versions. However, it is a specialized tool with a narrow user base outside Zope; most modern web projects use Jinja2, Django templates, or similar. Install only if your project already depends on Zope or you specifically need TAL/TALES syntax. ## Install pip install zope-pagetemplate uv add zope-pagetemplate poetry add zope-pagetemplate ## Installing zope.pagetemplate Before you install: Low install friction with a pure-Python wheel distribution. Actively maintained with recent releases; last commit 2026-02-18 and version 6.1 released 2025-11-21. Supports current Python versions (3.10–3.14) and PyPy. License in practice: Licensed under ZPL-2.1 (Zope Public License 2.1), classified as OSI-approved. License treatment marked unclear in the fact sheet; review the actual license terms before use in proprietary or restricted contexts. Quickstart: from zope.pagetemplate.pagetemplate import PageTemplate template = PageTemplate("
") result = template() Requires Python 3.10 or later; depends on zope.interface, zope.component, zope.tal, zope.tales, and zope.i18n packages. Verify before relying: - Whether the 'untrusted' extra (zope.untrustedpython) is necessary for production use cases involving untrusted template input. - Performance characteristics and scalability limits for large template volumes or complex expression evaluation. - Compatibility with modern web frameworks (Django, FastAPI, etc.) or whether it is primarily used within Zope ecosystem projects. ## Package facts - License: ZPL-2.1 (unclear) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 138.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags template attribute language, TAL templating, page template engine, zope templating, presentation separation, TALES expressions, template markup language, zope-ecosystem, template-engine, tal-markup [View on SkillFed](https://skillfed.io/packages/zope-pagetemplate) · [View on PyPI](https://pypi.org/project/zope-pagetemplate/)