The render_template decorator renders the result of the wrapped function with the specified template. When the request indicates a JSON response is required, it returns the result as a JSON object.
render_template also accepts a dictionary of mime-types and templates and will pick the appropriate template.
The render_template decorator renders the result of the wrapped function with the specified template. When the request indicates a JSON response is required, it returns the result as a JSON object.
render_template also accepts a dictionary of mime-types and templates and will pick the appropriate template.