What frappe.render_template() and how do I use it with routing?

How do I do routing and use render_template()?

Hi @archt,

Please check the post.

Also check the reference: Using Html Templates In Javascript

I hope this helps.

Thank You!

1 Like

Its not clear,can you please elaborate more?

frappe.render_template() is a function used for rendering HTML templates in your custom applications or scripts. It allows you to generate HTML content dynamically by merging data with an HTML template. This function is often used in the context of web routing to display dynamic web pages.

1 Like

Okay but how do we use the function,in which folder to put it in and folder structure and routing?
If I can a sample code it would help…I nee custom dynamic web pages and forms.