jinja2.Template.generate¶
-
Template.
generate
(*args, **kwargs)[source]¶ For very large templates it can be useful to not render the whole template at once but evaluate each statement after another and yield piece for piece. This method basically does exactly that and returns a generator that yields one item after another as unicode strings.
It accepts the same arguments as
render()
.