How to connect jinja template to frappe/erpnext?

i am making some script reports ,can please someone let me know how to connect the JINJA template to frappe/erpnext reports.

i want a step by step guide that would be helpful for me. Thanks