MCPcopy Create free account
hub / github.com/EasyIME/PIME / render_embed_js

Method render_embed_js

python/python3/tornado/web.py:948–958  ·  view source on GitHub ↗

Default method used to render the final embedded js for the rendered webpage. Override this method in a sub-classed controller to change the output.

(self, js_embed: Iterable[bytes])

Source from the content-addressed store, hash-verified

946 )
947
948 def render_embed_js(self, js_embed: Iterable[bytes]) -> bytes:
949 """Default method used to render the final embedded js for the
950 rendered webpage.
951
952 Override this method in a sub-classed controller to change the output.
953 """
954 return (
955 b'<script type="text/javascript">\n//<![CDATA[\n'
956 + b"\n".join(js_embed)
957 + b"\n//]]>\n</script>"
958 )
959
960 def render_linked_css(self, css_files: Iterable[str]) -> str:
961 """Default method used to render the final css links for the

Callers 1

renderMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected