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

Method render_embed_css

python/python3/tornado/web.py:982–988  ·  view source on GitHub ↗

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

(self, css_embed: Iterable[bytes])

Source from the content-addressed store, hash-verified

980 )
981
982 def render_embed_css(self, css_embed: Iterable[bytes]) -> bytes:
983 """Default method used to render the final embedded css for the
984 rendered webpage.
985
986 Override this method in a sub-classed controller to change the output.
987 """
988 return b'<style type="text/css">\n' + b"\n".join(css_embed) + b"\n</style>"
989
990 def render_string(self, template_name: str, **kwargs: Any) -> bytes:
991 """Generate the given template with the given arguments.

Callers 1

renderMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected