I don't understand \exactly\ what you are trying to accomplish, but did you try making the include dynamic by setting a variable in the parent template?
This came up when I searched on Jinja: https://stackoverflow.com/questions/6101864/dynamic-use-of-templates-in-jinja2 On Monday, August 21, 2017 at 5:37:57 AM UTC-7, [email protected] wrote: > > These are my code snippets - > > printer.py looks like - > > @app.route('/respond', methods=['GET','POST'])def respond_def(): > message = request.form['message_input'] > if message == "l": > return render_template('printer/login.html') > elif message == "t": > return render_template('printer/transactionID.html') > > base.html looks like - > > //some code here<li> > {% block template %}{% endblock %}</li>//some code here > > message.html looks like - > > {% extends "base.html" %}{% block template %}<div> Message template called > </div>{% endblock %} > > -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pocoo-libs. For more options, visit https://groups.google.com/d/optout.
