#import net
from microdot import Microdot, Response
from html_tools import render_template_string, render_template

app = Microdot()

htmldoc = """<!DOCTYPE html>
<html>
    <head>
        <title>Microdot Example Page</title>
    </head>
    <body>
        <div>
            <h1>Microdot Example Page</h1>
            <p>Hello from {{ name }}!</p>
        </div>
    </body>
</html>
"""


@app.route("", methods=["GET", "POST"])
def index(request):
    print(request.headers)
    html = render_template_string(htmldoc, name='Microdot')
    return Response(body=html, headers={"Content-Type": "text/html"})


@app.route("/name/<name>", methods=["GET", "POST"])
def name(request, name):
    print(request.headers)
    html = render_template('templates/hello.html', name=name)
    return Response(body=html, headers={"Content-Type": "text/html"})



app.run(port=5000, debug=True)

d6ccaaaab14c7802e8ccf5f59a7969abf26d699f
<mask token>


@app.route('', methods=['GET', 'POST'])
def index(request):
    print(request.headers)
    html = render_template_string(htmldoc, name='Microdot')
    return Response(body=html, headers={'Content-Type': 'text/html'})


@app.route('/name/<name>', methods=['GET', 'POST'])
def name(request, name):
    print(request.headers)
    html = render_template('templates/hello.html', name=name)
    return Response(body=html, headers={'Content-Type': 'text/html'})


<mask token>

<mask token>


@app.route('', methods=['GET', 'POST'])
def index(request):
    print(request.headers)
    html = render_template_string(htmldoc, name='Microdot')
    return Response(body=html, headers={'Content-Type': 'text/html'})


@app.route('/name/<name>', methods=['GET', 'POST'])
def name(request, name):
    print(request.headers)
    html = render_template('templates/hello.html', name=name)
    return Response(body=html, headers={'Content-Type': 'text/html'})


app.run(port=5000, debug=True)

<mask token>
app = Microdot()
htmldoc = """<!DOCTYPE html>
<html>
    <head>
        <title>Microdot Example Page</title>
    </head>
    <body>
        <div>
            <h1>Microdot Example Page</h1>
            <p>Hello from {{ name }}!</p>
        </div>
    </body>
</html>
"""


@app.route('', methods=['GET', 'POST'])
def index(request):
    print(request.headers)
    html = render_template_string(htmldoc, name='Microdot')
    return Response(body=html, headers={'Content-Type': 'text/html'})


@app.route('/name/<name>', methods=['GET', 'POST'])
def name(request, name):
    print(request.headers)
    html = render_template('templates/hello.html', name=name)
    return Response(body=html, headers={'Content-Type': 'text/html'})


app.run(port=5000, debug=True)

from microdot import Microdot, Response
from html_tools import render_template_string, render_template
app = Microdot()
htmldoc = """<!DOCTYPE html>
<html>
    <head>
        <title>Microdot Example Page</title>
    </head>
    <body>
        <div>
            <h1>Microdot Example Page</h1>
            <p>Hello from {{ name }}!</p>
        </div>
    </body>
</html>
"""


@app.route('', methods=['GET', 'POST'])
def index(request):
    print(request.headers)
    html = render_template_string(htmldoc, name='Microdot')
    return Response(body=html, headers={'Content-Type': 'text/html'})


@app.route('/name/<name>', methods=['GET', 'POST'])
def name(request, name):
    print(request.headers)
    html = render_template('templates/hello.html', name=name)
    return Response(body=html, headers={'Content-Type': 'text/html'})


app.run(port=5000, debug=True)

#import net
from microdot import Microdot, Response
from html_tools import render_template_string, render_template

app = Microdot()

htmldoc = """<!DOCTYPE html>
<html>
    <head>
        <title>Microdot Example Page</title>
    </head>
    <body>
        <div>
            <h1>Microdot Example Page</h1>
            <p>Hello from {{ name }}!</p>
        </div>
    </body>
</html>
"""


@app.route("", methods=["GET", "POST"])
def index(request):
    print(request.headers)
    html = render_template_string(htmldoc, name='Microdot')
    return Response(body=html, headers={"Content-Type": "text/html"})


@app.route("/name/<name>", methods=["GET", "POST"])
def name(request, name):
    print(request.headers)
    html = render_template('templates/hello.html', name=name)
    return Response(body=html, headers={"Content-Type": "text/html"})



app.run(port=5000, debug=True)
