class documentation

class StaticHTMLRenderer(TemplateHTMLRenderer): (source)

View In Hierarchy

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_type Undocumented

Inherited from TemplateHTMLRenderer:

Method get_exception_template Undocumented
Method get_template_context Undocumented
Method get_template_names Undocumented
Method resolve_template Undocumented
Class Variable exception_template_names Undocumented
Class Variable template_name Undocumented

Inherited from BaseRenderer (via TemplateHTMLRenderer):

Class Variable render_style Undocumented
def render(self, data, accepted_media_type=None, renderer_context=None): (source)

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().