Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged jinja2

0 votes
919 views
1 answer
    We have a custom Jinja filter that we use for creating cache busting URL for our Javascript and CSS resources. We ... the file) to the filter. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
611 views
1 answer
    I have a list of list like : [[elem0, elem1, elem2], [elem3, elem4, elem5], [elem6, elem7, elem8], . ... the element in the list in jinja? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
517 views
1 answer
    I have a list of list like : [[elem0, elem1, elem2], [elem3, elem4, elem5], [elem6, elem7, elem8], . ... the element in the list in jinja? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
571 views
1 answer
    The template looks like this: solr.replication.master= {% if ansible_eth0.ipv4.address == servermaster.eth0 %} false ... to force a line break? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
938 views
1 answer
    I'm trying to render a template that contains a DatePicker, but I'm getting a 500 error when I try. For my the ... {% endif %} {% endblock %} See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
555 views
1 answer
    I have a method that returns data which is needed in my base template (content for a global footer). How do ... it in a call to render_template? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
668 views
1 answer
    In jinja, the variable loop.index holds the iteration number of the current running loop. When I have nested ... iteration of an outer loop? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
736 views
1 answer
    Is it possible to import a Python module into a Jinja template so I can use its functions? For example, I ... was another way to achieve this. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
463 views
1 answer
    In a template, how do I get what page I'm currently on? I'd rather not pass a variable like page , especially when ... ="/about">About</a> </li> See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I want to be able to output the current loop iteration to my template. According to the docs: http://wsgiarea. ... . What is the correct syntax? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I received the following data from the setup module: "ansible_nodename": "3d734bc2a391", "ansible_os_family": "RedHat", ... only the first one. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
665 views
1 answer
    If I return a Jinja2 template like so: return render_response('home.htm', **context) How do then get a ... in context from within the template? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...