title: Creating link to an url of Flask app in jinja2 template
body: <p>In my Flask app, I have a view which displays a post</p>
  
  <pre><code>@post_blueprint.route('/post/&lt;int:year&gt;/&lt;int:month&gt;/&lt;title&gt;')
  def get_post(year,month,title):
      # My code
  </code></pre>
  
  <p>To display the last 10 entries, I have following view:</p>
  
  <pre><code>@post_blueprint.route('/posts/')
  def get_all_posts():
      # My code
      return render_template('p.html',posts=posts)
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>&lt;a href="/post/{{year}}/{{month}}/{{title}}"&gt;{{title}}&lt;/a&gt;
  </code></pre>
  
  <p>Is there any way to avoid hard coding the url? </p>
  
  <p>Like <code>url_for</code> function which is used to create Flask urls like this:</p>
  
  <pre><code>url_for('view_name',**arguments)
  </code></pre>
  
  <p>I have tried searching for one but I,m not able to find it.</p>