We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template.stream(...)
next(stream)
>>> template = Template('Hello {{ name }}!') >>> template.render(name='John Doe') == u'Hello John Doe!' True >>> stream = template.stream(name='John Doe') next(stream) == u'Hello John Doe!' True >>> next(stream) Traceback (most recent call last): ... StopIteration
>>> template = Template('Hello {{ name }}!') >>> template.render(name='John Doe') == 'Hello John Doe!' True >>> tream = template.stream(name='John Doe') >>> next(stream) == 'Hello ' True >>> next(stream) == 'John Doe' True >>> next(stream) == '!' True >>> next(stream) Traceback (most recent call last): ... StopIteration
u
The text was updated successfully, but these errors were encountered:
That example isn't really relevant to creating a template objects, so I've removed the example and reworded the docs a bit.
Sorry, something went wrong.
No branches or pull requests
Reproducing the Documentation Bug
next(stream)
call should failAs is:
Suggested:
Environment was:
u
prefixes for string literals - I rarely do these days ...The text was updated successfully, but these errors were encountered: