Metadata-Version: 2.1
Name: zope.ptresource
Version: 4.3.0
Summary: Page template resource plugin for zope.browserresource
Home-page: https://github.com/zopefoundation/zope.ptresource/
Author: Zope Foundation and Contributors
Author-email: zope-dev@zope.org
License: ZPL 2.1
Project-URL: Issue Tracker, https://github.com/zopefoundation/zope.ptresource/issues
Project-URL: Sources, https://github.com/zopefoundation/zope.ptresource
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Framework :: Zope :: 3
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
License-File: LICENSE.txt
Requires-Dist: setuptools
Requires-Dist: zope.browserresource
Requires-Dist: zope.interface
Requires-Dist: zope.pagetemplate
Requires-Dist: zope.publisher
Requires-Dist: zope.security
Provides-Extra: test
Requires-Dist: zope.testing ; extra == 'test'
Requires-Dist: zope.testrunner ; extra == 'test'

=====================
 ``zope.ptresource``
=====================

.. image:: https://img.shields.io/pypi/v/zope.ptresource.svg
        :target: https://pypi.python.org/pypi/zope.ptresource/
        :alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.ptresource.svg
        :target: https://pypi.org/project/zope.ptresource/
        :alt: Supported Python versions

.. image:: https://github.com/zopefoundation/zope.ptresource/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/zope.ptresource/actions/workflows/tests.yml

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.ptresource/badge.svg?branch=master
        :target: https://coveralls.io/github/zopefoundation/zope.ptresource?branch=master


.. note::

   This package is at present not reusable without depending on a large
   chunk of the Zope Toolkit and its assumptions. It is maintained by the
   `Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides a "page template" `resource class
<https://pypi.python.org/pypi/zope.browserresource>`_, a resource
whose content is processed with the `Zope Page Templates
<https://pypi.python.org/pypi/zope.pagetemplate>`_ engine before
being returned to client.

The resource factory class is registered for "pt", "zpt" and "html" file
extensions in the package's ``configure.zcml`` file.


=========
 Changes
=========

4.3.0 (2021-12-15)
==================

- Add support for Python 3.8, 3.9 and 3.10.

- Drop support for Python 3.4.


4.2.0 (2018-10-05)
==================

- Add support for Python 3.7.


4.1.0 (2017-08-31)
==================

- Add support for Python 3.5 and 3.6.

- Drop support for Python 2.6 and 3.3.



4.0.0 (2014-12-24)
==================

- Add support for PyPy and PyPy3.

- Add support for Python 3.4.

- Add support for testing on Travis.



4.0.0a1 (2013-02-25)
====================

- Add support for Python 3.3.

- Replace deprecated ``zope.interface.implements`` usage with equivalent
  ``zope.interface.implementer`` decorator.

- Drop support for Python 2.4 and 2.5.



3.9.0 (2009-08-27)
==================

Initial release. This package was split off zope.app.publisher as a part
of refactoring process. It's now a plugin for another package that was
refactored from zope.app.publisher - zope.browserresource. See its
documentation for more details.

Other changes:

 * Don't render PageTemplateResource when called as the IResource interface
   requires that __call__ method should return an absolute URL. When accessed
   by browser, it still will be rendered, because "browserDefault" method now
   returns a callable that will render the template to browser.


