Skip to main content

Document Templating Markup Language (DTML)

Project description

https://travis-ci.org/zopefoundation/DocumentTemplate.svg?branch=master https://coveralls.io/repos/github/zopefoundation/DocumentTemplate/badge.svg?branch=master Current version on PyPI Supported Python versions

DocumentTemplate

This package implements the original Document Templating Markup Language (DTML). It uses custom SGML tags to implement simple programmatic features, such as variable replacement, conditional logic and loops.

Inside Zope environments page templates and TAL have superseded DTML for most use cases.

Changelog

3.0b7 (2019-04-25)

  • Add support for Python 3.8

  • Make the rendering encoding configurable to fix rendering on Zope 4 (#43)

  • Add unit tests for dtml-if, dtml-unless and dtml-in variables (#7)

3.0b6 (2019-03-01)

  • Fix regression in .DT_Util.InstanceDict which broke the acquisition chain of the item it wraps. (#38)

3.0b5 (2018-10-05)

Breaking changes

  • Remove VSEval module. Please use DT_Util.EVal now.

  • Remove DTtestExpr module. It contained nothing useful.

Features

  • Add support for Python 3.7.

Bugfixes

  • Fix regression with exception handling in <dtml-except> with Python 2. (#25)

  • Stabilized TreeTag rendering for objects without _p_oid values. (#26)

  • Remove support for string exceptions in <dtml-except>. (#29)

  • Fix handling of parsing a ParseError in Python 3. (#29)

  • Fix bugs with <dtml-in>:

    • Raise proper error if prefix is not simple.

    • Fix complex multisort in Python 3.

    • Fix iteration over list of tuples in Python 3.

3.0b4 (2018-07-12)

  • Drop Python 3.4 support.

  • Fix a regression in the Python implementation differing from the C implementation in DocumentTemplate.DT_Util.InstanceDict. #24

  • Improve compatibility with flake8.

  • Update deprecated assert method calls.

3.0b3 (2018-04-18)

  • Fixed a problem with Python 3 compatibility when computing the state strings in tree tags.

  • No longer use icons which got deleted in Zope 4.

  • Fix sorting in <dtml-in> for duplicate entries in Python 3.

3.0b2 (2017-11-03)

  • Under Python 3, make sure no binary representations end up in the state string used for the tree tag.

3.0b1 (2017-09-15)

  • No changes since 3.0a4.

3.0a4 (2017-06-06)

  • Further fixes for Python 3 compatibility.

3.0a3 (2017-05-17)

  • Further fixes for Python 3 compatibility.

3.0a2 (2017-05-05)

  • Add support for Python 3.4 up to 3.6.

3.0a1 (2017-01-19)

  • Ensure html_quote is being applied to content.

  • Replace C code with a pure-Python implementation.

  • Add __contains__ support to DocumentTemplate.TemplateDict.

2.13.2 (2011-12-12)

  • Restrict the available functions in DocumentTemplate.sequence to public API’s of zope.sequencesort.

2.13.1 (2010-07-15)

  • LP #143273: Enable the dtml-var modifiers url_quote, url_unquote, url_quote_plus and url_unquote_plus to handle unicode strings.

2.13.0 (2010-06-19)

  • Released as separate package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DocumentTemplate-3.0b7.tar.gz (66.5 kB view details)

Uploaded Source

Built Distribution

DocumentTemplate-3.0b7-py2.py3-none-any.whl (89.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file DocumentTemplate-3.0b7.tar.gz.

File metadata

  • Download URL: DocumentTemplate-3.0b7.tar.gz
  • Upload date:
  • Size: 66.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for DocumentTemplate-3.0b7.tar.gz
Algorithm Hash digest
SHA256 831ef370f2955fe460fc2f0841b169efdf7cbfb3b7d05163e69a210380ecbe4b
MD5 6d5fdb3d21f2016501165a16783542bd
BLAKE2b-256 aa5b19a37c9ec2c3913308f2cf33a0b678023175b1ac28e703da0762b7f87fbf

See more details on using hashes here.

File details

Details for the file DocumentTemplate-3.0b7-py2.py3-none-any.whl.

File metadata

  • Download URL: DocumentTemplate-3.0b7-py2.py3-none-any.whl
  • Upload date:
  • Size: 89.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for DocumentTemplate-3.0b7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dddd74e2bdb1fbfc9542a390143f90d0c7e5fa9ffdc55e673aa3f2e4bd970c13
MD5 e58b6472e6553bc99a26703773cbfb81
BLAKE2b-256 dd5b0f7151b79048cb684888e488830c595222b8e2cb2b01acc3b89ca118c25c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page