Skip to content

Commit dc8073b

Browse files
committed
Adds two simple templates as multiline strings. This functionality will be expanded to use Jinja2 or similar later.
1 parent c765dbd commit dc8073b

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

tkintermd/constants.py

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,45 @@ def foo():
243243
>
244244
> *do* **normally**.
245245
246-
"""
246+
"""
247+
default_template_top = """<!DOCTYPE html>
248+
<html lang="en">
249+
<head>
250+
<meta charset="UTF-8">
251+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
252+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
253+
<title>tkintermd - Default Template</title>
254+
<style>
255+
body {
256+
padding: 30px;
257+
background-size: cover;
258+
font-family: sans-serif;
259+
align-items: center;
260+
}
261+
</style>
262+
</head>
263+
<Body>"""
264+
default_template_bottom = """</Body>
265+
</Html>"""
266+
centered_template_top = """<!DOCTYPE html>
267+
<html lang="en">
268+
<head>
269+
<meta charset="UTF-8">
270+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
271+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
272+
<title>tkintermd - Default Template</title>
273+
<style>
274+
body {
275+
padding: 30px;
276+
background-size: cover;
277+
font-family: sans-serif;
278+
align-items: center;
279+
}
280+
h1, h2, h3, h4, h5, h6 {
281+
text-align: center;
282+
}
283+
</style>
284+
</head>
285+
<Body>"""
286+
centered_template_bottom = """</Body>
287+
</Html>"""

0 commit comments

Comments
 (0)