MCPcopy
hub / github.com/tornadoweb/tornado / render

Method render

tornado/test/web_test.py:2086–2090  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

2084
2085 class MyModule(UIModule):
2086 def render(self, x):
2087 return "In MyModule({}) with handler value {}.".format(
2088 x,
2089 typing.cast(UIMethodUIModuleTest.Handler, self.handler).value(),
2090 )
2091
2092 loader = DictLoader(
2093 {"foo.html": "{{ my_ui_method(42) }} {% module MyModule(123) %}"}

Callers 4

getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45

Calls 2

formatMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected