diazo


Namediazo JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttp://diazo.org
SummaryDiazo implements a Deliverance like language using a pure
upload_time2024-04-25 19:35:53
maintainerNone
docs_urlNone
authorPaul Everitt, Laurence Rowe and Martin Aspeli.
requires_python>=3.8
licenseNew BSD
keywords web theming
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://travis-ci.org/plone/diazo.svg?branch=master
    :target: https://travis-ci.org/plone/diazo

==============================================
Diazo - We Write XSLT, So You Don't Have To
==============================================

Diazo allows you to apply a theme contained in a static HTML web page to a
dynamic website created using any server-side technology. With Diazo, you can
take an HTML wireframe created by a web designer and turn it into a theme for
your favourite CMS, redesign the user interface of a legacy web application
without even having access to the original source code, or build a unified
user experience across multiple disparate systems, all in a matter of hours,
not weeks.

When using Diazo, you will work with syntax and concepts familiar from working
with HTML and CSS. And by allowing you seamlessly integrate XSLT into your
rule files, Diazo makes common cases simple and complex requirements possible.

For detailed documentation, please see diazo.org_.

.. _diazo.org: http://diazo.org



Changelog
=========

.. You should *NOT* be adding new change log entries to this file.
   You should create a file in the news directory instead.
   For helpful instructions, please see:
   https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst

.. towncrier release notes start

2.0.1 (2024-04-25)
------------------

Tests


- Fix test in combination with lxml 5+ due to namespace changes.
  In this example, an xpath `/html/body/include` cannot be found because lxml 5 sees it as `/html/body/esi:include`, but this cannot easily be used as an xpath.
  [maurits] (#87)


2.0.0 (2024-02-12)
------------------

Breaking changes:


- Drop support for Pythons that are end of life.
  Support Python 3.8-3.12.
  [maurits] (#23)


Internal:


- Update configuration files.
  [plone devs] (5d3e918e)


1.5.0 (2022-10-31)
------------------

New features:


- Remove dependency on `future` package.
  [petschki] (#85)


1.4.2 (2021-12-29)
------------------

Bug fixes:


- Remove FormEncode test dependency.
  [maurits] (#83)


1.4.1 (2021-06-30)
------------------

Bug fixes:


- Fix problems with tox4 and simplify tox and test setup.
  [loechel] (#80)


1.4.0 (2020-04-20)
------------------

New features:


- Drop support for Python 3.4.  No code changes.
  [maurits] (#78)


1.3.0 (2019-06-27)
------------------

New features:


- Add support for Python 3.8 [pbauer] (#77)


1.2.12 (2019-05-01)
-------------------

Bug fixes:


- Avoid a ResourceWarning.
  [gforcada] (#75)


1.2.11 (2018-10-31)
-------------------

Bug fixes:

- Fix unicode errors in tests
  [petschki]


1.2.10 (2018-09-28)
-------------------

Bug fixes:

- Fix diazo.debug console with Python 2.7.
  [pbauer]


1.2.9 (2018-06-20)
------------------

Bug fixes:

- Add compatibility for plone.app.testing for Python 3.
  [icemac]


1.2.8 (2017-08-28)
------------------

Bug fixes:

- Make tox env release check manifest before releasing
  [loechel]


1.2.7 (2017-08-28)
------------------

Bug fixes:

- Fix packaging error.
  [esteele]


1.2.6 (2017-08-27)
------------------

Bug fixes:

- Code Cleanup and enforcing Code Conversions
  [loechel]


1.2.5 (2017-02-12)
------------------

Bug fixes:

- Fix test with webob 1.7
  [davisagli]


1.2.4 (2016-11-17)
------------------

New features:

- only add absolute prefix for xlink:href attributes if url doesn't start
  with a '#' (use anchor_safe_urljoin)
  [huubbouma]


1.2.3 (2016-06-07)
------------------

New:

- Add absolute url prefix to xlink:href attributes
  [krissik]


1.2.2 (2015-10-30)
------------------

New:

* Allowed content-to-content inclusion.
  [elro, ebrehault]


1.2.1 (2015-09-07)
------------------

* Absolute prefix support for srcset attributes
  [huubbouma]


1.2.0 (2015-09-03)
------------------

* Extend cssselect instead of using experimental.cssselect
  [elro]


1.1.2 (2015-09-03)
------------------

* Allow inline content for after and before.
  [ebrehault, elro]

* Fixed issue with remote themes via https connections
  [loechel]


1.1.1 (2015-03-21)
------------------

* Make flake8 happy by moving imports to top of file.
  [elro]


1.1.0 (2014-10-23)
------------------

* Python 3 support.
  [regebro, elro]


1.0.6 (2014-09-11)
------------------

* Use formencode's xml_compare method to compare test results. This solves test
  failures on several systems.
  [timo]

* Also evaluate if-not-content. However, we are at risk of replicating
  apply-conditions.xsl in it's entirety. this needs refactoring.
  [lentinj]

* Remove any xml:lang attribute from content to prevent multiple
  xml:lang attributes when the html tag's attributes are copied.
  [danjacka]

1.0.5 (2014-01-27)
------------------

* Escape curly brackets on theme attributes.
  [TracyWebTech]

1.0.4 (2013-08-14)
------------------

* Provide the request's query string as the ``$query_string`` variable
  for use in the rules file.
  [davidjb]

* Fix ``diazo.scheme`` definition to be correct. Previously, this was
  defined as ``request.host``.
  [davidjb]

1.0.3 (2012-11-11)
------------------

* Support selectors matching multiple elements for merge attributes, e.g.
  ``<merge attributes="class" css:theme="body" css:content="#one, #two"/>``
  [elro]

* Also evaluate merged-condition. This means a rule tag will turn red
  when a condition on an outer rules tag doesn't match.
  [lentinj]

* use boolean(), not count() for if-content. Otherwise we
  generate expressions like "count(nodeset and other_nodeset)",
  which aren't valid.
  [lentinj]

* Output contents of error log as part of debugging output
  [lentinj]

* Debugging output.
  [lentinj]

* Don't close the response unless Diazo is transforming it.
  [mitchellrj]

* fix error caused by empty style tag e.g. <style/>
  [djay]

1.0.2 (2012-08-30)
------------------

* Handle error when serializing empty responses by returning an unthemed
  response. Previously, empty text/html responses resulted in an raised
  exception, resulting in a 500 response and no output.
  [davidjb]

* Allow attributes (i.e. xml:id) to pass through on drop @attribute nodes
  [lentinj]

1.0.1 (2012-05-09)
------------------

* Fixed to not apply absolute prefix for relative urls starting with '#'.
  [datakurre]

1.0 (2012-04-15)
----------------

* Preserve resolvers in the rules document when updating from an old namespace.

* Add javascript / css include support to WSGIResolver.

* Refactoring if WSGI middleware to use WebOb better and fix corner cases.

* Use same xpath prefix for css:if-not-content and css:if-content.

* Add support for @if-not-path.

Note: for older changes, see ``docs/changelog.rst``.

            

Raw data

            {
    "_id": null,
    "home_page": "http://diazo.org",
    "name": "diazo",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "web theming",
    "author": "Paul Everitt, Laurence Rowe and Martin Aspeli.",
    "author_email": "laurence@lrowe.co.uk",
    "download_url": "https://files.pythonhosted.org/packages/f4/66/84fc7a434bf16d44502fe91c78c22b27ccbc5c066ed7ae78300d6cc4977b/diazo-2.0.1.tar.gz",
    "platform": null,
    "description": ".. image:: https://travis-ci.org/plone/diazo.svg?branch=master\n    :target: https://travis-ci.org/plone/diazo\n\n==============================================\nDiazo - We Write XSLT, So You Don't Have To\n==============================================\n\nDiazo allows you to apply a theme contained in a static HTML web page to a\ndynamic website created using any server-side technology. With Diazo, you can\ntake an HTML wireframe created by a web designer and turn it into a theme for\nyour favourite CMS, redesign the user interface of a legacy web application\nwithout even having access to the original source code, or build a unified\nuser experience across multiple disparate systems, all in a matter of hours,\nnot weeks.\n\nWhen using Diazo, you will work with syntax and concepts familiar from working\nwith HTML and CSS. And by allowing you seamlessly integrate XSLT into your\nrule files, Diazo makes common cases simple and complex requirements possible.\n\nFor detailed documentation, please see diazo.org_.\n\n.. _diazo.org: http://diazo.org\n\n\n\nChangelog\n=========\n\n.. You should *NOT* be adding new change log entries to this file.\n   You should create a file in the news directory instead.\n   For helpful instructions, please see:\n   https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst\n\n.. towncrier release notes start\n\n2.0.1 (2024-04-25)\n------------------\n\nTests\n\n\n- Fix test in combination with lxml 5+ due to namespace changes.\n  In this example, an xpath `/html/body/include` cannot be found because lxml 5 sees it as `/html/body/esi:include`, but this cannot easily be used as an xpath.\n  [maurits] (#87)\n\n\n2.0.0 (2024-02-12)\n------------------\n\nBreaking changes:\n\n\n- Drop support for Pythons that are end of life.\n  Support Python 3.8-3.12.\n  [maurits] (#23)\n\n\nInternal:\n\n\n- Update configuration files.\n  [plone devs] (5d3e918e)\n\n\n1.5.0 (2022-10-31)\n------------------\n\nNew features:\n\n\n- Remove dependency on `future` package.\n  [petschki] (#85)\n\n\n1.4.2 (2021-12-29)\n------------------\n\nBug fixes:\n\n\n- Remove FormEncode test dependency.\n  [maurits] (#83)\n\n\n1.4.1 (2021-06-30)\n------------------\n\nBug fixes:\n\n\n- Fix problems with tox4 and simplify tox and test setup.\n  [loechel] (#80)\n\n\n1.4.0 (2020-04-20)\n------------------\n\nNew features:\n\n\n- Drop support for Python 3.4.  No code changes.\n  [maurits] (#78)\n\n\n1.3.0 (2019-06-27)\n------------------\n\nNew features:\n\n\n- Add support for Python 3.8 [pbauer] (#77)\n\n\n1.2.12 (2019-05-01)\n-------------------\n\nBug fixes:\n\n\n- Avoid a ResourceWarning.\n  [gforcada] (#75)\n\n\n1.2.11 (2018-10-31)\n-------------------\n\nBug fixes:\n\n- Fix unicode errors in tests\n  [petschki]\n\n\n1.2.10 (2018-09-28)\n-------------------\n\nBug fixes:\n\n- Fix diazo.debug console with Python 2.7.\n  [pbauer]\n\n\n1.2.9 (2018-06-20)\n------------------\n\nBug fixes:\n\n- Add compatibility for plone.app.testing for Python 3.\n  [icemac]\n\n\n1.2.8 (2017-08-28)\n------------------\n\nBug fixes:\n\n- Make tox env release check manifest before releasing\n  [loechel]\n\n\n1.2.7 (2017-08-28)\n------------------\n\nBug fixes:\n\n- Fix packaging error.\n  [esteele]\n\n\n1.2.6 (2017-08-27)\n------------------\n\nBug fixes:\n\n- Code Cleanup and enforcing Code Conversions\n  [loechel]\n\n\n1.2.5 (2017-02-12)\n------------------\n\nBug fixes:\n\n- Fix test with webob 1.7\n  [davisagli]\n\n\n1.2.4 (2016-11-17)\n------------------\n\nNew features:\n\n- only add absolute prefix for xlink:href attributes if url doesn't start\n  with a '#' (use anchor_safe_urljoin)\n  [huubbouma]\n\n\n1.2.3 (2016-06-07)\n------------------\n\nNew:\n\n- Add absolute url prefix to xlink:href attributes\n  [krissik]\n\n\n1.2.2 (2015-10-30)\n------------------\n\nNew:\n\n* Allowed content-to-content inclusion.\n  [elro, ebrehault]\n\n\n1.2.1 (2015-09-07)\n------------------\n\n* Absolute prefix support for srcset attributes\n  [huubbouma]\n\n\n1.2.0 (2015-09-03)\n------------------\n\n* Extend cssselect instead of using experimental.cssselect\n  [elro]\n\n\n1.1.2 (2015-09-03)\n------------------\n\n* Allow inline content for after and before.\n  [ebrehault, elro]\n\n* Fixed issue with remote themes via https connections\n  [loechel]\n\n\n1.1.1 (2015-03-21)\n------------------\n\n* Make flake8 happy by moving imports to top of file.\n  [elro]\n\n\n1.1.0 (2014-10-23)\n------------------\n\n* Python 3 support.\n  [regebro, elro]\n\n\n1.0.6 (2014-09-11)\n------------------\n\n* Use formencode's xml_compare method to compare test results. This solves test\n  failures on several systems.\n  [timo]\n\n* Also evaluate if-not-content. However, we are at risk of replicating\n  apply-conditions.xsl in it's entirety. this needs refactoring.\n  [lentinj]\n\n* Remove any xml:lang attribute from content to prevent multiple\n  xml:lang attributes when the html tag's attributes are copied.\n  [danjacka]\n\n1.0.5 (2014-01-27)\n------------------\n\n* Escape curly brackets on theme attributes.\n  [TracyWebTech]\n\n1.0.4 (2013-08-14)\n------------------\n\n* Provide the request's query string as the ``$query_string`` variable\n  for use in the rules file.\n  [davidjb]\n\n* Fix ``diazo.scheme`` definition to be correct. Previously, this was\n  defined as ``request.host``.\n  [davidjb]\n\n1.0.3 (2012-11-11)\n------------------\n\n* Support selectors matching multiple elements for merge attributes, e.g.\n  ``<merge attributes=\"class\" css:theme=\"body\" css:content=\"#one, #two\"/>``\n  [elro]\n\n* Also evaluate merged-condition. This means a rule tag will turn red\n  when a condition on an outer rules tag doesn't match.\n  [lentinj]\n\n* use boolean(), not count() for if-content. Otherwise we\n  generate expressions like \"count(nodeset and other_nodeset)\",\n  which aren't valid.\n  [lentinj]\n\n* Output contents of error log as part of debugging output\n  [lentinj]\n\n* Debugging output.\n  [lentinj]\n\n* Don't close the response unless Diazo is transforming it.\n  [mitchellrj]\n\n* fix error caused by empty style tag e.g. <style/>\n  [djay]\n\n1.0.2 (2012-08-30)\n------------------\n\n* Handle error when serializing empty responses by returning an unthemed\n  response. Previously, empty text/html responses resulted in an raised\n  exception, resulting in a 500 response and no output.\n  [davidjb]\n\n* Allow attributes (i.e. xml:id) to pass through on drop @attribute nodes\n  [lentinj]\n\n1.0.1 (2012-05-09)\n------------------\n\n* Fixed to not apply absolute prefix for relative urls starting with '#'.\n  [datakurre]\n\n1.0 (2012-04-15)\n----------------\n\n* Preserve resolvers in the rules document when updating from an old namespace.\n\n* Add javascript / css include support to WSGIResolver.\n\n* Refactoring if WSGI middleware to use WebOb better and fix corner cases.\n\n* Use same xpath prefix for css:if-not-content and css:if-content.\n\n* Add support for @if-not-path.\n\nNote: for older changes, see ``docs/changelog.rst``.\n",
    "bugtrack_url": null,
    "license": "New BSD",
    "summary": "Diazo implements a Deliverance like language using a pure",
    "version": "2.0.1",
    "project_urls": {
        "Homepage": "http://diazo.org"
    },
    "split_keywords": [
        "web",
        "theming"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "032f22fe7c7875501ce7af9f38267d662df342193c6250d908b76553dde84093",
                "md5": "07a2ca95df15b45b78f6a7b48e747a84",
                "sha256": "8e8cba30c870d52122f03ce77b3a7b68b244a9ce349fceb28bf7373fa561a567"
            },
            "downloads": -1,
            "filename": "diazo-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07a2ca95df15b45b78f6a7b48e747a84",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 308980,
            "upload_time": "2024-04-25T19:35:51",
            "upload_time_iso_8601": "2024-04-25T19:35:51.054364Z",
            "url": "https://files.pythonhosted.org/packages/03/2f/22fe7c7875501ce7af9f38267d662df342193c6250d908b76553dde84093/diazo-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f46684fc7a434bf16d44502fe91c78c22b27ccbc5c066ed7ae78300d6cc4977b",
                "md5": "5a315d2c1c582df8b22722979be7e28b",
                "sha256": "f1b99a9e9402e22390d5a653068764d584df7a3bad828076da44ad420bfc61cf"
            },
            "downloads": -1,
            "filename": "diazo-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5a315d2c1c582df8b22722979be7e28b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 380902,
            "upload_time": "2024-04-25T19:35:53",
            "upload_time_iso_8601": "2024-04-25T19:35:53.617361Z",
            "url": "https://files.pythonhosted.org/packages/f4/66/84fc7a434bf16d44502fe91c78c22b27ccbc5c066ed7ae78300d6cc4977b/diazo-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-25 19:35:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "diazo"
}
        
Elapsed time: 0.26889s