Results for jinja2
My goal is to eliminate the Ansible warning produced by device variable, listed below. I thought making use of lookup('ansible.builtin.vars', 'device'...
I have the following variables to use in my Jinja template: list_python_version = [3, 9] all_python_version = [ [3, 8], [3, 9], [3, 10], [3, 1...
Overall my goal is to dynamically update a table in html with data from a dictionary passed through flask into a jinja loop. In trying to populate an ...
I am new to building the web app with flask where I would like to show details in a modal popup. I am passing the class from my route to html template...
I'm a total noob to flask. I'm just getting started with flask and jinja template engine. Please, kindly answer me. This is my html head tag, html> ht...
I'm building a set of Ansible tasks that work with renewing HTTPS certificates through Namecheap using their API. Their API returns XML responses, so ...
I want to dynamically render data in an HTML email template with Jinja2 and Python. I'm new both in Python and Jinja2. This is what I have done so far...
I need to create multiple files with values declared in a var file from a Jinja2 Template file (server.properties). I have tried known methods to impl...
I am using Python FastAPI and Jinja2, all of which I am new to. I am able to set cookies on their own, or return html templates on their own, but I ca...
I would like to create a dynamic YAML key name for the HTTP header of uri module within the task. playbook.yml - name: "Set variable" set_fact: ...
I have a temp.py file and I have used FastAPI to return string or a dictionary with 2 get methods one for string another for dictionary. I also have a...
Is it possible to convert a list of lists/dicts to a list of strings using a formatting string in Ansible / Jinja2? I understand I can do something li...
I'm aware of both safe and escape filters in jinja, but I couldn't find a solution for my problem. I have the following string : mystring = """alert('...
Some data used in an ansible role: list1: - foo - bar list2: # sometimes this is empty This ansible task fails: - name: hello som...
This is my code, who calls error: {% extends "add_book_header.html" %} {% block content %} {% if books %} p>Results: {{ books|lengt...
How can I use a Jinja2 expression within a js function? I'd tried something similar to the lines below and the expression isn't working. The attribute...
hello I want to set the value of an item in a list in jinja2, for that I'm trying code> {% set arr=[0,0,0,0,0,0,0,0] %} {% print arr %} {% set arr[1]...
Jinja2 template code: {% if u.user_name == u.user_email %} {{ u.user_email }} {% else %} {{ u.user_name }}br /> {{ u.user_email }} {% endif %} U...
How do i pass jinja2 data into javascript. I have a Flask REST url as /logs/ I am trying use .getJSON() to query the above URL and hence would want t...
I added a facebook button to my page by copying/pasting the code they supply on their website. It looks like this: "http://www.facebook.com/dialog...
I need to get the list of variable needed in the context of a template to be able to give some feedback to the programmer that will use my service. H...
I'm trying, in a template, to include another one that is in the same folder. To do so, i'm just doing {% import 'header.jinja2' %}. The problem is th...
Do you have a best-practices and coding style when developing with Jinja2? Personally, I like the style in Plurk/Solace, but I'd like to know what oth...
I'm building an admin for Flask and SQLAlchemy, and I want to pass the HTML for the different inputs to my view using render_template. The templating ...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?