Home > Python > Python Templating Welcome to supplement/feedback/suggestions

Main Python Templating.



loading...

reload

Jinjia2 - Official website - Source code - Document - Download address - Score()

Jinjia2 template is a text file, which can be HTML, XML, CSV, and so on. Its suffix has no naming restrictions. The template contains some variables, expressions and labels. When rendering the template, the variables will be replaced with specific values, the expressions will be calculated, and the labels will be parsed and executed according to the template syntax.

Mako template - Official website - Source code - Document - Download address - Score()

Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance. Mako's syntax and API borrows from the best ideas of many others, including Django and Jinja2 templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded Python (i.e. Python Server Page) language, which refines the familiar ideas of componentized layout and inheritance to produce one of the most straightforward and flexible models available, while also maintaining close ties to Python calling and scoping semantics.

Chameleon - Official website - Source code - Document - Download address - Score()

Chameleon is an HTML/XML template engine implementation of template attribute language (TAL), TAL expression syntax (TALES) and macro extension TAL (Metal) syntax. It can be used for Python 2.5 and later (including 3. x and PyPy) and is usually used by the Pyramid framework.


Reprint, please indicate that is from www.guider.dev, thank you.