Skip to content

Commit

Permalink
Adds two simple templates as multiline strings. This functionality wi…
Browse files Browse the repository at this point in the history
…ll be expanded to use Jinja2 or similar later.
  • Loading branch information
hreikin committed Apr 16, 2022
1 parent c765dbd commit dc8073b
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion tkintermd/constants.py
Expand Up @@ -243,4 +243,45 @@ def foo():
>
> *do* **normally**.
"""
"""
default_template_top = """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>tkintermd - Default Template</title>
<style>
body {
padding: 30px;
background-size: cover;
font-family: sans-serif;
align-items: center;
}
</style>
</head>
<Body>"""
default_template_bottom = """</Body>
</Html>"""
centered_template_top = """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>tkintermd - Default Template</title>
<style>
body {
padding: 30px;
background-size: cover;
font-family: sans-serif;
align-items: center;
}
h1, h2, h3, h4, h5, h6 {
text-align: center;
}
</style>
</head>
<Body>"""
centered_template_bottom = """</Body>
</Html>"""

0 comments on commit dc8073b

Please sign in to comment.