How to use render_template in custom app

Thanks for your kind reply. But your solution is like finding a needle in a haystack.
I fallowed this post and found the solution:

https://discuss.frappe.io/t/build-json-and-custom-css/27138/2