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。
我該怎麼辦?
感謝您的幫助。