其他分享
首页 > 其他分享> > 模板之导入include

模板之导入include

作者:互联网

include导入模板

<form>
    <input type="text">
    <input type="submit">
</form>

 

{% extends 'master.html' %}

{% block title %}你猜{% endblock %}
{% block content %}
    <h1>用户管理</h1>
    <ul>
        {% for i in u %}
             <li>{{ i }}</li>
        {% endfor %}



    </ul>
    {% include 'tag.html' %}
    {% include 'tag.html' %}
    {% include 'tag.html' %}
{% endblock %}

 

标签:block,tag,html,导入,模板,include,endblock
来源: https://www.cnblogs.com/anhao-world/p/14660183.html