Tornado 6.0 Documentation
Expressions can be any Python expression, including function calls. Template code is executed in a namespace that includes the following objects and functions. (Note that this list applies to templates rendered include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. Authentication and security use render() above. RequestHandler.get_template_namespace() → Dict[str, Any][source] Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify0 码力 | 869 页 | 692.83 KB | 1 年前3
Tornado 6.1 Documentation
Expressions can be any Python expression, including function calls. Template code is executed in a namespace that includes the following objects and functions. (Note that this list applies to templates rendered include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. Authentication and security use render() above. RequestHandler.get_template_namespace() → Dict[str, Any][source] Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify0 码力 | 931 页 | 708.03 KB | 1 年前3
Tornado 4.5 Documentation
Expressions can be any Python expression, including function calls. Template code is executed in a namespace that includes the following objects and functions (Note that this list applies to templates rendered include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. Authentication and security a response, use render() above. RequestHandler.get_template_namespace() Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify values. The0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 6.5 DocumentationExpressions can be any Python expression, including function calls. Template code is executed in a namespace that includes the following objects and functions. (Note that this list applies to templates rendered include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. 6.1. User’s guide 31Tornado response, use render() above. RequestHandler.get_template_namespace() → Dict[str, Any] Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify values0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.1 Documentation
include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. 6.1.7 Authentication response, use render() above. RequestHandler.get_template_namespace() → Dict[str, Any] Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify values template just like any other variable (In a RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(10 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 4.5 Documentation
include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. 4.1.7 Authentication a response, use render() above. RequestHandler.get_template_namespace() Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify values. The template just like any other variable (In a RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(10 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 5.1 Documentation
include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. 5.1.7 Authentication a response, use render() above. RequestHandler.get_template_namespace() Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify values. The template just like any other variable (In a RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(10 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. 6.1.7 Authentication response, use render() above. RequestHandler.get_template_namespace() → Dict[str, Any] Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify values template just like any other variable (In a RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(10 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.4 Documentation
Expressions can be any Python expression, including function calls. Template code is executed in a namespace that includes the following objects and functions. (Note that this list applies to templates rendered include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. 6.1.7 Authentication response, use render() above. RequestHandler.get_template_namespace() → Dict[str, Any] Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify values0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
Expressions can be any Python expression, including function calls. Template code is executed in a namespace that includes the following objects and functions. (Note that this list applies to templates rendered include ... %} directive, template modules have a distinct namespace from their containing template - they can only see the global template namespace and their own keyword arguments. 6.1.7 Authentication response, use render() above. RequestHandler.get_template_namespace() → Dict[str, Any] Returns a dictionary to be used as the default template namespace. May be overridden by subclasses to add or modify values0 码力 | 260 页 | 1.06 MB | 1 年前3
共 20 条
- 1
- 2













