How does nunjucks render the parameters in the tag?

{% for item in list %}
  <li onclick="edit(item._id)" data-id="">
    <p class="content">{{ item.title }}

<p class="date">{{ item.createdAt }}

</li> {% endfor %}

as in the previous code, how do I pass _ id in item as a parameter to a parameter in the edit event?

Jun.24,2021

<li onclick="edit({{item._id}})" data-id="">
Menu