FlaskDormitoryProject/templates/base/README.md
2023-04-27 21:45:32 +08:00

50 lines
902 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# base模板简介
通过{%block name%}进行表示结构
## 模板已实现部分
1. bootstrap的基本JS
2. 基类基本css
3. 导航栏和脚注部分
4. 空余的container类div标签
## 模板核心参考
```html
{% block doc %}
<!DOCTYPE html>
{% block html %}
<html lang="en">
<head>
{% block head %}
{% block meta %}
{% endblock meta %}
<title>{% block title %}学生寝室管理系统{% endblock title%}</title>
{% block styles %}
{% endblock styles %}
{% endblock head %}
</head>
<body>
{% block body %}
{% block nav %}
{% endblock nav %}
{% block content %}
<div class="container"></div>
//注意container这个div在里面
{% endblock content %}
{% block footer %}
{% endblock footer %}
{% block js %}
{% endblock js %}
{% endblock body %}
</body>
{% endblock html %}
</html>
{% endblock doc %}
```