mjml-python 1.4.1__tar.gz → 1.4.2__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.
- {mjml_python-1.4.1 → mjml_python-1.4.2}/Cargo.lock +28 -17
- {mjml_python-1.4.1 → mjml_python-1.4.2}/Cargo.toml +2 -2
- {mjml_python-1.4.1 → mjml_python-1.4.2}/PKG-INFO +1 -1
- {mjml_python-1.4.1 → mjml_python-1.4.2}/tests/test_mjml2html.py +24 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/.github/FUNDING.yml +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/.github/workflows/CI.yml +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/.github/workflows/Publish.yml +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/.github/workflows/_build-wheels.yml +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/.gitignore +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/CONTRIBUTING.md +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/LICENSE +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/README.md +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/SECURITY.md +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/mjml.pyi +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/pyproject.toml +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/shell.nix +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/src/lib.rs +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/tests/__init__.py +0 -0
- {mjml_python-1.4.1 → mjml_python-1.4.2}/uv.lock +0 -0
|
@@ -10,14 +10,14 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
|
10
10
|
|
|
11
11
|
[[package]]
|
|
12
12
|
name = "enum-as-inner"
|
|
13
|
-
version = "0.
|
|
13
|
+
version = "0.7.0"
|
|
14
14
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
-
checksum = "
|
|
15
|
+
checksum = "0359ee92f81184d7985519e474bda2a5738476334edd3746c9b1265c067afe70"
|
|
16
16
|
dependencies = [
|
|
17
17
|
"heck",
|
|
18
18
|
"proc-macro2",
|
|
19
19
|
"quote",
|
|
20
|
-
"syn",
|
|
20
|
+
"syn 2.0.100",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
23
|
[[package]]
|
|
@@ -29,7 +29,7 @@ dependencies = [
|
|
|
29
29
|
"once_cell",
|
|
30
30
|
"proc-macro2",
|
|
31
31
|
"quote",
|
|
32
|
-
"syn",
|
|
32
|
+
"syn 2.0.100",
|
|
33
33
|
]
|
|
34
34
|
|
|
35
35
|
[[package]]
|
|
@@ -69,9 +69,9 @@ dependencies = [
|
|
|
69
69
|
|
|
70
70
|
[[package]]
|
|
71
71
|
name = "itertools"
|
|
72
|
-
version = "0.
|
|
72
|
+
version = "0.14.0"
|
|
73
73
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
74
|
-
checksum = "
|
|
74
|
+
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
|
|
75
75
|
dependencies = [
|
|
76
76
|
"either",
|
|
77
77
|
]
|
|
@@ -96,7 +96,7 @@ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
|
|
96
96
|
|
|
97
97
|
[[package]]
|
|
98
98
|
name = "mjml-python"
|
|
99
|
-
version = "1.4.
|
|
99
|
+
version = "1.4.2"
|
|
100
100
|
dependencies = [
|
|
101
101
|
"mrml",
|
|
102
102
|
"pyo3",
|
|
@@ -104,9 +104,9 @@ dependencies = [
|
|
|
104
104
|
|
|
105
105
|
[[package]]
|
|
106
106
|
name = "mrml"
|
|
107
|
-
version = "
|
|
107
|
+
version = "6.0.1"
|
|
108
108
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
109
|
-
checksum = "
|
|
109
|
+
checksum = "3a92ff9ad398a7d556481a607b912370999bc6441537c90a979c16d73c91a832"
|
|
110
110
|
dependencies = [
|
|
111
111
|
"enum-as-inner",
|
|
112
112
|
"enum_dispatch",
|
|
@@ -182,7 +182,7 @@ dependencies = [
|
|
|
182
182
|
"proc-macro2",
|
|
183
183
|
"pyo3-macros-backend",
|
|
184
184
|
"quote",
|
|
185
|
-
"syn",
|
|
185
|
+
"syn 2.0.100",
|
|
186
186
|
]
|
|
187
187
|
|
|
188
188
|
[[package]]
|
|
@@ -194,7 +194,7 @@ dependencies = [
|
|
|
194
194
|
"heck",
|
|
195
195
|
"proc-macro2",
|
|
196
196
|
"quote",
|
|
197
|
-
"syn",
|
|
197
|
+
"syn 2.0.100",
|
|
198
198
|
]
|
|
199
199
|
|
|
200
200
|
[[package]]
|
|
@@ -235,7 +235,7 @@ checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
|
|
|
235
235
|
dependencies = [
|
|
236
236
|
"proc-macro2",
|
|
237
237
|
"quote",
|
|
238
|
-
"syn",
|
|
238
|
+
"syn 2.0.100",
|
|
239
239
|
]
|
|
240
240
|
|
|
241
241
|
[[package]]
|
|
@@ -261,6 +261,17 @@ dependencies = [
|
|
|
261
261
|
"unicode-ident",
|
|
262
262
|
]
|
|
263
263
|
|
|
264
|
+
[[package]]
|
|
265
|
+
name = "syn"
|
|
266
|
+
version = "3.0.4"
|
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
+
checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f"
|
|
269
|
+
dependencies = [
|
|
270
|
+
"proc-macro2",
|
|
271
|
+
"quote",
|
|
272
|
+
"unicode-ident",
|
|
273
|
+
]
|
|
274
|
+
|
|
264
275
|
[[package]]
|
|
265
276
|
name = "target-lexicon"
|
|
266
277
|
version = "0.13.3"
|
|
@@ -269,22 +280,22 @@ checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
|
|
|
269
280
|
|
|
270
281
|
[[package]]
|
|
271
282
|
name = "thiserror"
|
|
272
|
-
version = "
|
|
283
|
+
version = "2.0.20"
|
|
273
284
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
274
|
-
checksum = "
|
|
285
|
+
checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
|
|
275
286
|
dependencies = [
|
|
276
287
|
"thiserror-impl",
|
|
277
288
|
]
|
|
278
289
|
|
|
279
290
|
[[package]]
|
|
280
291
|
name = "thiserror-impl"
|
|
281
|
-
version = "
|
|
292
|
+
version = "2.0.20"
|
|
282
293
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
283
|
-
checksum = "
|
|
294
|
+
checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
|
|
284
295
|
dependencies = [
|
|
285
296
|
"proc-macro2",
|
|
286
297
|
"quote",
|
|
287
|
-
"syn",
|
|
298
|
+
"syn 3.0.4",
|
|
288
299
|
]
|
|
289
300
|
|
|
290
301
|
[[package]]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "mjml-python"
|
|
3
|
-
version = "1.4.
|
|
3
|
+
version = "1.4.2"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
|
|
@@ -10,5 +10,5 @@ name = "mjml"
|
|
|
10
10
|
crate-type = ["cdylib"]
|
|
11
11
|
|
|
12
12
|
[dependencies]
|
|
13
|
-
mrml = "
|
|
13
|
+
mrml = { version = "6.0.0" }
|
|
14
14
|
pyo3 = { version = "~0.29.0", features = ["abi3-py38", "extension-module"] }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import unittest
|
|
2
|
+
|
|
2
3
|
from mjml import mjml2html
|
|
3
4
|
|
|
4
5
|
|
|
@@ -171,3 +172,26 @@ class TestIncludeLoader(unittest.TestCase):
|
|
|
171
172
|
result,
|
|
172
173
|
r"<style type=\"text/css\">.some-class { font-family: monospace }</style>",
|
|
173
174
|
)
|
|
175
|
+
|
|
176
|
+
def test_include_at_root(self):
|
|
177
|
+
strings = {
|
|
178
|
+
"body.mjml": """
|
|
179
|
+
<mj-body>
|
|
180
|
+
<mj-section>
|
|
181
|
+
<mj-column>
|
|
182
|
+
<mj-text>Hello from the root include</mj-text>
|
|
183
|
+
</mj-column>
|
|
184
|
+
</mj-section>
|
|
185
|
+
</mj-body>
|
|
186
|
+
"""
|
|
187
|
+
}
|
|
188
|
+
result = mjml2html(
|
|
189
|
+
"""
|
|
190
|
+
<mjml>
|
|
191
|
+
<mj-include path="body.mjml" />
|
|
192
|
+
</mjml>
|
|
193
|
+
""",
|
|
194
|
+
include_loader=strings.__getitem__,
|
|
195
|
+
)
|
|
196
|
+
self.assertRegex(result, r"^<!doctype html>")
|
|
197
|
+
self.assertRegex(result, r">Hello from the root include<")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|