Jinja2 : call function on click
<p>I'm hacking a cms-like system that use Jinja2 and Javascript in frontend and Python in backend.</p>

<p>I implemented some Python functions on backend that do stuff on database.</p>

<p>I want to launch that functions from HTML pages, so i used Jinja2.</p>

<p>The problem is that the snippets <code>{% %}</code> and <code>{{ }}</code> are always parsed and processed when HTML is loaded. </p>

<p>I want to execute that functions when I click a button or a link.</p>

<p>How could I make it works?</p>