MCPcopy Index your code
hub / github.com/nodejs/node / render_as_html

Method render_as_html

tools/inspector_protocol/jinja2/debug.py:103–109  ·  view source on GitHub ↗

Return a unicode string with the traceback as rendered HTML.

(self, full=False)

Source from the content-addressed store, hash-verified

101 return ''.join(lines).rstrip()
102
103 def render_as_html(self, full=False):
104 """Return a unicode string with the traceback as rendered HTML."""
105 from jinja2.debugrenderer import render_traceback
106 return u'%s\n\n<!--\n%s\n-->' % (
107 render_traceback(self, full=full),
108 self.render_as_text().decode('utf-8', 'replace')
109 )
110
111 @property
112 def is_template_syntax_error(self):

Callers

nothing calls this directly

Calls 2

render_as_textMethod · 0.95
decodeMethod · 0.65

Tested by

no test coverage detected