Creating link to an url of Flask app in jinja2 template
问题 In my Flask app, I have a view which displays a post @post_blueprint.route('/post/<int:year>/<int:month>/<title>') def get_post(year,month,title): # My code To display the last 10 entries, I have following view: @post_blueprint.route('/posts/') def get_all_posts(): # My code return render_template('p.html',posts=posts) Now when I display the last 10 posts, I want to convert the title of a post into a hyperlink. Currently I have to do the following in my jinja template to achieve this: <a href