Debian Codegraph @

third_party/python/Mako/Mako-1.2.2.dist-info/METADATA

raw
1 Metadata-Version: 2.1
2 Name: Mako
3 Version: 1.2.2
4 Summary: A super-fast templating language that borrows the best ideas from the existing templating languages.
5 Home-page: https://www.makotemplates.org/
6 Author: Mike Bayer
7 Author-email: [email protected]
8 License: MIT
9 Project-URL: Documentation, https://docs.makotemplates.org
10 Project-URL: Issue Tracker, https://github.com/sqlalchemy/mako
11 Classifier: Development Status :: 5 - Production/Stable
12 Classifier: License :: OSI Approved :: MIT License
13 Classifier: Environment :: Web Environment
14 Classifier: Intended Audience :: Developers
15 Classifier: Programming Language :: Python
16 Classifier: Programming Language :: Python :: 3
17 Classifier: Programming Language :: Python :: 3.7
18 Classifier: Programming Language :: Python :: 3.8
19 Classifier: Programming Language :: Python :: 3.9
20 Classifier: Programming Language :: Python :: 3.10
21 Classifier: Programming Language :: Python :: Implementation :: CPython
22 Classifier: Programming Language :: Python :: Implementation :: PyPy
23 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
24 Requires-Python: >=3.7
25 Description-Content-Type: text/x-rst
26 License-File: LICENSE
27 Requires-Dist: MarkupSafe (>=0.9.2)
28 Requires-Dist: importlib-metadata ; python_version < "3.8"
29 Provides-Extra: babel
30 Requires-Dist: Babel ; extra == 'babel'
31 Provides-Extra: lingua
32 Requires-Dist: lingua ; extra == 'lingua'
33 Provides-Extra: testing
34 Requires-Dist: pytest ; extra == 'testing'
35
36 =========================
37 Mako Templates for Python
38 =========================
39
40 Mako is a template library written in Python. It provides a familiar, non-XML
41 syntax which compiles into Python modules for maximum performance. Mako's
42 syntax and API borrows from the best ideas of many others, including Django
43 templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
44 Python (i.e. Python Server Page) language, which refines the familiar ideas
45 of componentized layout and inheritance to produce one of the most
46 straightforward and flexible models available, while also maintaining close
47 ties to Python calling and scoping semantics.
48
49 Nutshell
50 ========
51
52 ::
53
54 <%inherit file="base.html"/>
55 <%
56 rows = [[v for v in range(0,10)] for row in range(0,10)]
57 %>
58 <table>
59 % for row in rows:
60 ${makerow(row)}
61 % endfor
62 </table>
63
64 <%def name="makerow(row)">
65 <tr>
66 % for name in row:
67 <td>${name}</td>\
68 % endfor
69 </tr>
70 </%def>
71
72 Philosophy
73 ===========
74
75 Python is a great scripting language. Don't reinvent the wheel...your templates can handle it !
76
77 Documentation
78 ==============
79
80 See documentation for Mako at https://docs.makotemplates.org/en/latest/
81
82 License
83 ========
84
85 Mako is licensed under an MIT-style license (see LICENSE).
86 Other incorporated projects may be licensed under different licenses.
87 All licenses allow for non-commercial and commercial use.