python - flask问题
巴扎黑
巴扎黑 2017-04-18 10:25:01
0
2
497

问题

home.html

{% extends "base/base.html" %}
{% block title %}Home{% endblock %}
{% block content %}
    {% include "./recent_post.html" %}
{% endblock %}

recent_post.html

{{ posts_list }}

现在xxx.py

return render_template('home.html',posts_list=get_posts_list)

怎么让recent_post.html里的posts_list获取到传过去的值呢

标签问题

巴扎黑
巴扎黑

全部回覆(2)
小葫芦

標籤問題autoescape導致的

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!