Frappe erpnext how i can render doctype data in custom block html?

<div id="custom_table">
    <h4>List of Patients</h4>
    <table>
        <tr>
            <th>Age</th>
        </tr>
        {% for patient in  frappe.get_list('Patients list', filters={}, fields=['age'] %}
            <tr>
                <td>{{ patient.age }}</td>
            </tr>
        {% endfor %}
    </table>
</div>

THIS IS WHAT I GET


THIS IS WHAT I SET IN CUSTOM HTML BLOCK

The html editor field type does not recognise jinja.

You should use the html field and write the html&jinja code in a .js file and use the wrapper method to wrap the html in the html field.