class StaticHTMLRenderer(TemplateHTMLRenderer): (source)
An HTML renderer class that simply returns pre-rendered HTML. The data supplied to the Response object should be a string representing the pre-rendered HTML content. For example: data = '<html><body>example</body></html>' return Response(data) For template rendered HTML, see TemplateHTMLRenderer.
Method | render |
Renders data to HTML, using Django's standard template rendering. |
Class Variable | charset |
Undocumented |
Class Variable | format |
Undocumented |
Class Variable | media |
Undocumented |
Inherited from TemplateHTMLRenderer
:
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | resolve |
Undocumented |
Class Variable | exception |
Undocumented |
Class Variable | template |
Undocumented |
Inherited from BaseRenderer
(via TemplateHTMLRenderer
):
Class Variable | render |
Undocumented |
Renders data to HTML, using Django's standard template rendering. The template name is determined by (in order of preference): 1. An explicit .template_name set on the response. 2. An explicit .template_name set on this class. 3. The return result of calling view.get_template_names().