docassemble-mako 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docassemble_mako-0.0.1/LICENSE +19 -0
- docassemble_mako-0.0.1/MANIFEST.in +16 -0
- docassemble_mako-0.0.1/PKG-INFO +68 -0
- docassemble_mako-0.0.1/README.rst +52 -0
- docassemble_mako-0.0.1/docassemble_mako/__init__.py +8 -0
- docassemble_mako-0.0.1/docassemble_mako/_ast_util.py +713 -0
- docassemble_mako-0.0.1/docassemble_mako/ast.py +221 -0
- docassemble_mako-0.0.1/docassemble_mako/cache.py +239 -0
- docassemble_mako-0.0.1/docassemble_mako/cmd.py +99 -0
- docassemble_mako-0.0.1/docassemble_mako/codegen.py +1342 -0
- docassemble_mako-0.0.1/docassemble_mako/compat.py +70 -0
- docassemble_mako-0.0.1/docassemble_mako/exceptions.py +417 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/__init__.py +0 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/autohandler.py +70 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/babelplugin.py +57 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/beaker_cache.py +82 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/extract.py +129 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/linguaplugin.py +57 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/preprocessors.py +20 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/pygmentplugin.py +150 -0
- docassemble_mako-0.0.1/docassemble_mako/ext/turbogears.py +61 -0
- docassemble_mako-0.0.1/docassemble_mako/filters.py +163 -0
- docassemble_mako-0.0.1/docassemble_mako/lexer.py +481 -0
- docassemble_mako-0.0.1/docassemble_mako/lookup.py +361 -0
- docassemble_mako-0.0.1/docassemble_mako/parsetree.py +658 -0
- docassemble_mako-0.0.1/docassemble_mako/pygen.py +309 -0
- docassemble_mako-0.0.1/docassemble_mako/pyparser.py +235 -0
- docassemble_mako-0.0.1/docassemble_mako/runtime.py +968 -0
- docassemble_mako-0.0.1/docassemble_mako/template.py +719 -0
- docassemble_mako-0.0.1/docassemble_mako/util.py +388 -0
- docassemble_mako-0.0.1/docassemble_mako.egg-info/PKG-INFO +68 -0
- docassemble_mako-0.0.1/docassemble_mako.egg-info/SOURCES.txt +35 -0
- docassemble_mako-0.0.1/docassemble_mako.egg-info/dependency_links.txt +1 -0
- docassemble_mako-0.0.1/docassemble_mako.egg-info/top_level.txt +2 -0
- docassemble_mako-0.0.1/pyproject.toml +23 -0
- docassemble_mako-0.0.1/setup.cfg +7 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2006-2025 the Mako authors and contributors <see AUTHORS file>.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
include LICENSE
|
|
2
|
+
recursive-exclude * *.egg-info
|
|
3
|
+
recursive-exclude .git *
|
|
4
|
+
recursive-exclude venv *
|
|
5
|
+
recursive-exclude .github *
|
|
6
|
+
recursive-exclude .pytest_cache *
|
|
7
|
+
recursive-exclude .vscode *
|
|
8
|
+
recursive-exclude build *
|
|
9
|
+
recursive-exclude dist *
|
|
10
|
+
recursive-exclude * __pycache__
|
|
11
|
+
recursive-exclude * *.pyc
|
|
12
|
+
recursive-exclude * *.pyo
|
|
13
|
+
recursive-exclude * *.orig
|
|
14
|
+
recursive-exclude * *~
|
|
15
|
+
recursive-exclude * *.bak
|
|
16
|
+
recursive-exclude * *.swp
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: docassemble-mako
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A fork of mako for docassemble
|
|
5
|
+
Author-email: Jonathan Pyle <jhpyle@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://docassemble.org
|
|
8
|
+
Project-URL: Documentation, https://docassemble.org/docs.html
|
|
9
|
+
Project-URL: Repository, https://github.com/jhpyle/docassemble-mako.git
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/jhpyle/docassemble-mako/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/jhpyle/docassemble-mako/blob/master/CHANGELOG.md
|
|
12
|
+
Requires-Python: >=3.12
|
|
13
|
+
Description-Content-Type: text/x-rst
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Dynamic: license-file
|
|
16
|
+
|
|
17
|
+
=========================
|
|
18
|
+
Mako Templates for Python
|
|
19
|
+
=========================
|
|
20
|
+
|
|
21
|
+
Mako is a template library written in Python. It provides a familiar, non-XML
|
|
22
|
+
syntax which compiles into Python modules for maximum performance. Mako's
|
|
23
|
+
syntax and API borrows from the best ideas of many others, including Django
|
|
24
|
+
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
|
|
25
|
+
Python (i.e. Python Server Page) language, which refines the familiar ideas
|
|
26
|
+
of componentized layout and inheritance to produce one of the most
|
|
27
|
+
straightforward and flexible models available, while also maintaining close
|
|
28
|
+
ties to Python calling and scoping semantics.
|
|
29
|
+
|
|
30
|
+
Nutshell
|
|
31
|
+
========
|
|
32
|
+
|
|
33
|
+
::
|
|
34
|
+
|
|
35
|
+
<%inherit file="base.html"/>
|
|
36
|
+
<%
|
|
37
|
+
rows = [[v for v in range(0,10)] for row in range(0,10)]
|
|
38
|
+
%>
|
|
39
|
+
<table>
|
|
40
|
+
% for row in rows:
|
|
41
|
+
${makerow(row)}
|
|
42
|
+
% endfor
|
|
43
|
+
</table>
|
|
44
|
+
|
|
45
|
+
<%def name="makerow(row)">
|
|
46
|
+
<tr>
|
|
47
|
+
% for name in row:
|
|
48
|
+
<td>${name}</td>\
|
|
49
|
+
% endfor
|
|
50
|
+
</tr>
|
|
51
|
+
</%def>
|
|
52
|
+
|
|
53
|
+
Philosophy
|
|
54
|
+
===========
|
|
55
|
+
|
|
56
|
+
Python is a great scripting language. Don't reinvent the wheel...your templates can handle it !
|
|
57
|
+
|
|
58
|
+
Documentation
|
|
59
|
+
==============
|
|
60
|
+
|
|
61
|
+
See documentation for Mako at https://docs.makotemplates.org/en/latest/
|
|
62
|
+
|
|
63
|
+
License
|
|
64
|
+
========
|
|
65
|
+
|
|
66
|
+
Mako is licensed under an MIT-style license (see LICENSE).
|
|
67
|
+
Other incorporated projects may be licensed under different licenses.
|
|
68
|
+
All licenses allow for non-commercial and commercial use.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
=========================
|
|
2
|
+
Mako Templates for Python
|
|
3
|
+
=========================
|
|
4
|
+
|
|
5
|
+
Mako is a template library written in Python. It provides a familiar, non-XML
|
|
6
|
+
syntax which compiles into Python modules for maximum performance. Mako's
|
|
7
|
+
syntax and API borrows from the best ideas of many others, including Django
|
|
8
|
+
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
|
|
9
|
+
Python (i.e. Python Server Page) language, which refines the familiar ideas
|
|
10
|
+
of componentized layout and inheritance to produce one of the most
|
|
11
|
+
straightforward and flexible models available, while also maintaining close
|
|
12
|
+
ties to Python calling and scoping semantics.
|
|
13
|
+
|
|
14
|
+
Nutshell
|
|
15
|
+
========
|
|
16
|
+
|
|
17
|
+
::
|
|
18
|
+
|
|
19
|
+
<%inherit file="base.html"/>
|
|
20
|
+
<%
|
|
21
|
+
rows = [[v for v in range(0,10)] for row in range(0,10)]
|
|
22
|
+
%>
|
|
23
|
+
<table>
|
|
24
|
+
% for row in rows:
|
|
25
|
+
${makerow(row)}
|
|
26
|
+
% endfor
|
|
27
|
+
</table>
|
|
28
|
+
|
|
29
|
+
<%def name="makerow(row)">
|
|
30
|
+
<tr>
|
|
31
|
+
% for name in row:
|
|
32
|
+
<td>${name}</td>\
|
|
33
|
+
% endfor
|
|
34
|
+
</tr>
|
|
35
|
+
</%def>
|
|
36
|
+
|
|
37
|
+
Philosophy
|
|
38
|
+
===========
|
|
39
|
+
|
|
40
|
+
Python is a great scripting language. Don't reinvent the wheel...your templates can handle it !
|
|
41
|
+
|
|
42
|
+
Documentation
|
|
43
|
+
==============
|
|
44
|
+
|
|
45
|
+
See documentation for Mako at https://docs.makotemplates.org/en/latest/
|
|
46
|
+
|
|
47
|
+
License
|
|
48
|
+
========
|
|
49
|
+
|
|
50
|
+
Mako is licensed under an MIT-style license (see LICENSE).
|
|
51
|
+
Other incorporated projects may be licensed under different licenses.
|
|
52
|
+
All licenses allow for non-commercial and commercial use.
|