From 3b0bb5a0a2197b87a6a03ec3c248765c99dbd258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E6=83=B3=E6=A9=A1=E7=9A=AE=E6=93=A6?= Date: Tue, 27 Dec 2022 21:32:00 +0800 Subject: [PATCH] =?UTF-8?q?flask=20=E6=A8=A1=E6=9D=BF=E7=BB=A7=E6=89=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/__pycache__/routes.cpython-36.pyc | Bin 553 -> 681 bytes app/routes.py | 7 +++- app/templates/_form.html | 11 +++++ app/templates/base.html | 8 ++++ app/templates/bt.html | 2 + app/templates/common/footer.html | 5 +++ app/templates/common/header.html | 13 ++++++ app/templates/common/nav.html | 23 ++++++++++ app/templates/common/tj.html | 10 +++++ app/templates/general/imgs.html | 48 +++------------------ app/templates/general/news.html | 48 +++------------------ app/templates/general/table.html | 48 +++------------------ app/templates/index.html | 58 +++----------------------- app/templates/school/index.html | 48 +++------------------ 14 files changed, 103 insertions(+), 226 deletions(-) create mode 100644 app/templates/_form.html create mode 100644 app/templates/base.html create mode 100644 app/templates/common/footer.html create mode 100644 app/templates/common/header.html create mode 100644 app/templates/common/nav.html create mode 100644 app/templates/common/tj.html diff --git a/app/__pycache__/routes.cpython-36.pyc b/app/__pycache__/routes.cpython-36.pyc index 8845c0c986ecf7871520731b47f65783c7f5e9c6..100516d5ac7bd7a5484aee4860175cee98a25853 100644 GIT binary patch delta 143 zcmZ3 +{% 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 0000000..01d7015 --- /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 20a8b08..3982fcf 100644 --- a/app/templates/bt.html +++ b/app/templates/bt.html @@ -10,6 +10,8 @@ +{% import "_form.html" as f %} +{{f.input()}}