diff --git a/app/__pycache__/routes.cpython-36.pyc b/app/__pycache__/routes.cpython-36.pyc index 8845c0c986ecf7871520731b47f65783c7f5e9c6..100516d5ac7bd7a5484aee4860175cee98a25853 100644 Binary files a/app/__pycache__/routes.cpython-36.pyc and b/app/__pycache__/routes.cpython-36.pyc differ diff --git a/app/routes.py b/app/routes.py index 89d411a0317d79cc5ef72c41d836e877b68362f1..dc65b9161cfe38e7102ddb8c0023d839ae10edab 100644 --- a/app/routes.py +++ b/app/routes.py @@ -16,4 +16,9 @@ def index(): @app.route('/bt') def bt(): - return render_template('bt.html') \ No newline at end of file + return render_template('bt.html') + + +@app.route('/mac') +def mac(): + return render_template('_form.html') \ No newline at end of file diff --git a/app/templates/_form.html b/app/templates/_form.html new file mode 100644 index 0000000000000000000000000000000000000000..534a9e66cb03590617400d87acf99192f1713ce6 --- /dev/null +++ b/app/templates/_form.html @@ -0,0 +1,11 @@ +{% macro input() %} + +{% endmacro %} + +{{ input() }} + +{% macro input2(name, type='text', value='',placeholder='') %} + +{%- endmacro %} + +{{ input2('username',placeholder="占位符") }} \ No newline at end of file diff --git a/app/templates/base.html b/app/templates/base.html new file mode 100644 index 0000000000000000000000000000000000000000..01d7015233d9ccc285cf2b8f8f7b641778aed54b --- /dev/null +++ b/app/templates/base.html @@ -0,0 +1,8 @@ + + +{%include 'common/header.html' %} + +{%block content%}{%endblock content%} + + + \ No newline at end of file diff --git a/app/templates/bt.html b/app/templates/bt.html index 20a8b088273bd5d9a0efb37ab506be34b4073516..3982fcfdded91f4e6a33244a1759434e922fc466 100644 --- a/app/templates/bt.html +++ b/app/templates/bt.html @@ -10,6 +10,8 @@ +{% import "_form.html" as f %} +{{f.input()}}