title: How can I pass parameters to this Flask Jinja template function?
body: <p>This works, but Id like to pass the parameter variable values to the section inside return render_template() so I can reuse test(), how can I do that?</p>
  
  <pre><code>""" Test.html """
  @app.route('/test')
  def test():
      """Renders the careers page."""
      return render_template(
          'content/loader.html',
          title='Test',
          year=datetime.now().year,
          message='Your Test page.',
          main_nav_active_ = '',
          layout_template = '/layouts/default.html',
          content_template = 'clarity.html'
      )
  </code></pre>
  
  <p>I would like to be able to use the function like this based on routes</p>
  
  <pre><code>""" Test.html """
  def test(title,year,message, main_nav_active_, layout_template, content_template)
      """Renders the careers page."""
      return render_template(
          'content/loader.html',
          title=title,
          year=year,
          message=message,
          main_nav_active_ = main_nav_active_,
          layout_template = layout_template,
          content_template = content_template
      )
  
  @app.route('/test2')
  test(title='test2',year=datetime.now().year,message='Your Test page.', main_nav_active_='', layout_template='/layouts/default.html', content_template='clarity.html')
  
  @app.route('/test3')
  test(title='test3',year=datetime.now().year,message='Your Test page3.', main_nav_active_='', layout_template='/layouts/default.html', content_template='foo.html')
  </code></pre>