Cool, but if this is a bug?
在 2019年1月3日星期四 UTC+8下午11:12:45,Juan Pablo Scaletti写道:
>
> As you can read on the documentation, no, you can't assign a value in a
> loop and use it outside the loop, unless you use a namespace:
>
> http://jinja.pocoo.org/docs/2.10/templates/#assignments (see: Scoping
>
As you can read on the documentation, no, you can't assign a value in a
loop and use it outside the loop, unless you use a namespace:
http://jinja.pocoo.org/docs/2.10/templates/#assignments (see: Scoping
Behavior)
On Thu, Jan 3, 2019 at 3:30 AM Simon Jones wrote:
> Hi all,
>
> I'm using
And why do not support 'break' ..
在 2019年1月3日星期四 UTC+8下午4:30:34,Simon Jones写道:
>
> Hi all,
>
> I'm using Jinja2 template to generate config files, but I found a BUG,
> which is I could not assign value in a loop, like this:
>
> 1) use this template, could generate 'uuusevrf'
>
> {% block