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.1b2 (2019-05-16)

Bug fixes

  • Fix broken handling of SyntaxError under Python 3

3.1b1 (2019-05-13)

Bug fixes

  • Don’t call HTTPExceptions that are looked up in TemplateDicts

3.0 (2019-05-09)

Changes since 2.13.2:

Breaking changes

  • Replace C code with a pure-Python implementation.

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

  • Remove DTtestExpr module. It contained nothing useful.

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

Features

  • Add support for Python 3.5, 3.6, 3.7, 3.8.

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

  • Add __contains__ support to DocumentTemplate.TemplateDict.

Bug fixes

  • Only decode input in html_quote when needed under Python 3 (Products.PythonScripts#28 <https://github.com/zopefoundation/Products.PythonScripts/issues/28>_)

  • Make sure all JSON-serialized data is text data and not bytes. (#45)

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

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

  • 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.

  • Ensure html_quote is being applied to content.

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.1b2.tar.gz (66.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DocumentTemplate-3.1b2-py2.py3-none-any.whl (89.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file DocumentTemplate-3.1b2.tar.gz.

File metadata

  • Download URL: DocumentTemplate-3.1b2.tar.gz
  • Upload date:
  • Size: 66.4 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.1b2.tar.gz
Algorithm Hash digest
SHA256 5be6c7f61e80ee5b11a46cf4ae1a571124434d0b6f9c8b59af8e6c2368e06b65
MD5 0a934b57abfc1eefe1507bb916eead69
BLAKE2b-256 c66ac8f5b79d00cad8fdec3407df5132fe01dfb550ff5cc55690d715a8b067d1

See more details on using hashes here.

File details

Details for the file DocumentTemplate-3.1b2-py2.py3-none-any.whl.

File metadata

  • Download URL: DocumentTemplate-3.1b2-py2.py3-none-any.whl
  • Upload date:
  • Size: 89.5 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.1b2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 349e85a633eb3ae7ec2b559af109967dc580428f2268d8165b7e30cde46292be
MD5 82939e84ee83105ba57b9438b97e0119
BLAKE2b-256 7293fe5743b0f24389e6016539ce3028c19e5cc0741fc27ea9c84caf461d0d45

See more details on using hashes here.

Supported by

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