title: Dynamic table with Python
body: <p>I am developing a small site, which must fetch some data from an API and display it in a table (I don't know how much rows I will need, it depends on the API). I selected Python as backend programming language and Flask as a web-framework. I need to make a request to API from Python on page start and display it's result in a table in HTML template. render_template with some parameters can't do that - because it can't dynamically display HTML elements, just text. How can I do it without JS/JQuery or using it minimally? This is my table code (it's Bootstrap 4)</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table class="table table-bordered" id="users"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;ID&lt;/th&gt;
        &lt;th&gt;Имя&lt;/th&gt;
        &lt;th&gt;Фамилия&lt;/th&gt;
        &lt;th&gt;Действие&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td rowspan="1"&gt;3319&lt;/td&gt;
        &lt;td&gt;...&lt;/td&gt;
        &lt;td&gt;...&lt;/td&gt;
        &lt;td&gt;&lt;a href="#"&gt;Выбрать&lt;/a&gt;&lt;/td&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>