Tornado 5.1 Documentation
are: Native coroutines are generally faster. Native coroutines can use async for and async with statements which make some patterns much simpler. Native coroutines do not run at all unless you await or control statements and expressions. Control statements are surrounded by {% and %}, e.g., {% if len(items) > 2 %}. Expressions are surrounded by {{ and }}, e.g., {{ items[0] }}. Control statements more or exactly to Python statements. We support if, for, while, and try, all of which are terminated with {% end %}. We also support template inheritance using the extends and block statements, which are described0 码力 | 359 页 | 347.32 KB | 1 年前3
Tornado 4.5 Documentation
control statements and expressions. Control statements are surrounded by {% and %}, e.g., {% if len(items) > 2 %}. Expressions are surrounded by {{ and }}, e.g., {{ items[0] }}. Control statements more or exactly to Python statements. We support if, for, while, and try, all of which are terminated with {% end %}. We also support template inheritance using the extends and block statements, which are described other template systems, we do not put any restrictions on the expressions you can include in your statements. if and for blocks get translated exactly into Python, so you can do complex expressions like:0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 5.1 Documentation
• Native coroutines are generally faster. • Native coroutines can use async for and async with statements which make some patterns much simpler. • Native coroutines do not run at all unless you await control statements and expressions. Control statements are surrounded by {% and %}, e.g., {% if len(items) > 2 %}. Expressions are surrounded by {{ and }}, e.g., {{ items[0] }}. Control statements more or exactly to Python statements. We support if, for, while, and try, all of which are terminated with {% end %}. We also support template inheritance using the extends and block statements, which are described0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.4 Documentation
outlined below. • Native coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated render("template.html", title="My title", items=items) Tornado templates support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded items[0] }}. 6.1. User’s guide 27 Tornado Documentation, Release 6.4 Control statements more or less map exactly to Python statements. We support if, for, while, and try, all of which are terminated with {%0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
outlined below. • Native coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded by {{ and }}, e.g. {{ items[0] }}. Control statements more or exactly to Python statements. We support if, for, while, and try, all of which are terminated with {% end %}. We also support template inheritance using the extends and block statements, which are described0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.4 Documentation
outlined below. • Native coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated render("template.html", title="My title", items=items) Tornado templates support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded items[0] }}. 6.1. User’s guide 27 Tornado Documentation, Release 6.4 Control statements more or less map exactly to Python statements. We support if, for, while, and try, all of which are terminated with {%0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
outlined below. • Native coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated render("template.html", title="My title", items=items) Tornado templates support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded items[0] }}. 6.1. User’s guide 27 Tornado Documentation, Release 6.4 Control statements more or less map exactly to Python statements. We support if, for, while, and try, all of which are terminated with {%0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.3 Documentation
outlined below. • Native coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated render("template.html", title="My title", items=items) Tornado templates support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded }}. 6.1. User’s guide 27 Tornado Documentation, Release 6.3.3 Control statements more or less map exactly to Python statements. We support if, for, while, and try, all of which are terminated with {%0 码力 | 264 页 | 1.06 MB | 1 年前3
Tornado 6.5 Documentationoutlined below. • Native coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated render("template.html", title="My title", items=items) Tornado templates support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded items[0] }}. 6.1. User’s guide 27Tornado Documentation, Release 6.5.1 Control statements more or less map exactly to Python statements. We support if, for, while, and try, all of which are terminated with {%0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.1 Documentation
outlined below. • Native coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded by {{ and }}, e.g. {{ items[0] }}. Control statements more or exactly to Python statements. We support if, for, while, and try, all of which are terminated with {% end %}. We also support template inheritance using the extends and block statements, which are described0 码力 | 245 页 | 904.24 KB | 1 年前3
共 20 条
- 1
- 2













