0
我在/ statistics/id中。对象中的烧瓶资源html
我有资源,我烧瓶观点:
@app.route('/statistics2/<int:id>', methods=['GET', 'POST']):
quotation_title = db.get_quotation_by_session_parameter(id, 'number_questions')
return render_template('statistics2.html', quotation_title = quotation_title)
我想打电话给该资源在我的对象HTML标记。
我这样做:
<object id="content" type="text/html" width="100%" height="100%" data="statistics" ></object>
在数据属性我想指出的统计数据/ ID,但我不知道我怎么能检索当前ID
例如:与ID 6 ,我在/统计/ 6,我想在我的对象HTML显示数据属性statistics2/6。
我该怎么办?
感谢您的帮助。