pyams-template


Namepyams-template JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttps://pyams.readthedocs.io
SummaryPyAMS templates management
upload_time2023-11-26 02:26:22
maintainer
docs_urlNone
authorThierry Florac
requires_python>=3.5
licenseZPL
keywords pyramid pyams
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ======================
PyAMS_template package
======================

.. contents::


What is PyAMS?
==============

PyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications
and content management with the Pyramid framework.

**PyAMS** is actually mainly used to manage web sites through content management applications (CMS,
see PyAMS_content package), but many features are generic and can be used inside any kind of web
application.

All PyAMS documentation is available on `ReadTheDocs <https://pyams.readthedocs.io>`_; source code
is available on `Gitlab <https://gitlab.com/pyams>`_ and pushed to `Github
<https://github.com/py-ams>`_.


What is PyAMS_template?
=======================

PyAMS is using Chameleon internally as HTML templates engine.

This package, which is essentially an adaptation of "z3c.template" package for Pyramid, allows to
separate the definition of a view code from it's rendering template; this template selection can
actually be based on the view but also on the request layer (see "PyAMS_layer" package to get more
information about layers).

PyAMS_template package provides a "template_config" decorator, which allows you to define a template
for a given view, and a "layout_config" decorator, which allows to define a "layout" template;
layout templates are particularly useful when using "pagelets", which are defined into another
package (see PyAMS_pagelet).

You can also override a template definition for a given view, without creating a new view class,
just by using the "override_template" or "override_layout" functions.

View and layout templates can also be declared using ZCML instead of Python code, by using the
<template /> and <layout /> directives.


Changelog
=========

2.0.1
-----
 - updated Buildout configuration

2.0.0
-----
 - migrated to Pyramid 2.0
 - added support for Python 3.10 and 3.11

1.2.0
-----
 - removed support for Python < 3.7

1.1.3
-----
 - removed Travis-CI configuration

1.1.2
-----
 - updated Travis configuration

1.1.1
-----
 - updated global registry access

1.1.0
-----
 - removed ZCML directives
 - updated doctests

1.0.6
-----
 - updated super-call of layout and template getters

1.0.5
-----
 - refactored code to reduce duplicated lines

1.0.4
-----
 - modified required arguments of templates registration
 - updated doctests

1.0.3
-----
 - corrected duplicated variable name mismatch in "template_config" and "layout_config"
   decorators

1.0.2
-----
 - new version to avoid upload issue!

1.0.1
-----
 - added Pyramid configuration settings to templates configuration

1.0.0
-----
 - initial release

            

Raw data

            {
    "_id": null,
    "home_page": "https://pyams.readthedocs.io",
    "name": "pyams-template",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "Pyramid PyAMS",
    "author": "Thierry Florac",
    "author_email": "tflorac@ulthar.net",
    "download_url": "https://files.pythonhosted.org/packages/af/76/81706105f2fa231eacc3b73a2ca76f953c3f99d42b193feab7cd002ebcb5/pyams_template-2.0.1.tar.gz",
    "platform": null,
    "description": "======================\nPyAMS_template package\n======================\n\n.. contents::\n\n\nWhat is PyAMS?\n==============\n\nPyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications\nand content management with the Pyramid framework.\n\n**PyAMS** is actually mainly used to manage web sites through content management applications (CMS,\nsee PyAMS_content package), but many features are generic and can be used inside any kind of web\napplication.\n\nAll PyAMS documentation is available on `ReadTheDocs <https://pyams.readthedocs.io>`_; source code\nis available on `Gitlab <https://gitlab.com/pyams>`_ and pushed to `Github\n<https://github.com/py-ams>`_.\n\n\nWhat is PyAMS_template?\n=======================\n\nPyAMS is using Chameleon internally as HTML templates engine.\n\nThis package, which is essentially an adaptation of \"z3c.template\" package for Pyramid, allows to\nseparate the definition of a view code from it's rendering template; this template selection can\nactually be based on the view but also on the request layer (see \"PyAMS_layer\" package to get more\ninformation about layers).\n\nPyAMS_template package provides a \"template_config\" decorator, which allows you to define a template\nfor a given view, and a \"layout_config\" decorator, which allows to define a \"layout\" template;\nlayout templates are particularly useful when using \"pagelets\", which are defined into another\npackage (see PyAMS_pagelet).\n\nYou can also override a template definition for a given view, without creating a new view class,\njust by using the \"override_template\" or \"override_layout\" functions.\n\nView and layout templates can also be declared using ZCML instead of Python code, by using the\n<template /> and <layout /> directives.\n\n\nChangelog\n=========\n\n2.0.1\n-----\n - updated Buildout configuration\n\n2.0.0\n-----\n - migrated to Pyramid 2.0\n - added support for Python 3.10 and 3.11\n\n1.2.0\n-----\n - removed support for Python < 3.7\n\n1.1.3\n-----\n - removed Travis-CI configuration\n\n1.1.2\n-----\n - updated Travis configuration\n\n1.1.1\n-----\n - updated global registry access\n\n1.1.0\n-----\n - removed ZCML directives\n - updated doctests\n\n1.0.6\n-----\n - updated super-call of layout and template getters\n\n1.0.5\n-----\n - refactored code to reduce duplicated lines\n\n1.0.4\n-----\n - modified required arguments of templates registration\n - updated doctests\n\n1.0.3\n-----\n - corrected duplicated variable name mismatch in \"template_config\" and \"layout_config\"\n   decorators\n\n1.0.2\n-----\n - new version to avoid upload issue!\n\n1.0.1\n-----\n - added Pyramid configuration settings to templates configuration\n\n1.0.0\n-----\n - initial release\n",
    "bugtrack_url": null,
    "license": "ZPL",
    "summary": "PyAMS templates management",
    "version": "2.0.1",
    "project_urls": {
        "Homepage": "https://pyams.readthedocs.io"
    },
    "split_keywords": [
        "pyramid",
        "pyams"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca7e20e4021f0cfc47593afc64e05d1eac8152d030b4227851004663d3fb4bd9",
                "md5": "4c01faa71cb347e09b990f3ef041822d",
                "sha256": "3b2443454b6c02647696f642122d6f503fa2f6684524e3e3419071006e166563"
            },
            "downloads": -1,
            "filename": "pyams_template-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4c01faa71cb347e09b990f3ef041822d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 15691,
            "upload_time": "2023-11-26T02:26:20",
            "upload_time_iso_8601": "2023-11-26T02:26:20.747261Z",
            "url": "https://files.pythonhosted.org/packages/ca/7e/20e4021f0cfc47593afc64e05d1eac8152d030b4227851004663d3fb4bd9/pyams_template-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "af7681706105f2fa231eacc3b73a2ca76f953c3f99d42b193feab7cd002ebcb5",
                "md5": "d8daf02e776d6793aa70e38f50916845",
                "sha256": "370c2f5a27657684908a2dea87645264b62249aa67563b1229804ceb32b2fc30"
            },
            "downloads": -1,
            "filename": "pyams_template-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d8daf02e776d6793aa70e38f50916845",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 11431,
            "upload_time": "2023-11-26T02:26:22",
            "upload_time_iso_8601": "2023-11-26T02:26:22.695059Z",
            "url": "https://files.pythonhosted.org/packages/af/76/81706105f2fa231eacc3b73a2ca76f953c3f99d42b193feab7cd002ebcb5/pyams_template-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-26 02:26:22",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pyams-template"
}
        
Elapsed time: 0.15085s