It's admittedly very borderline and on another day I could see myself
saying this is programming with templates. But for some reason (even if
only just because I'm fickle and unpredictable), this one seems valid.
Anybody else who isn't James or SmileyChris (since they've spoken in the
tickets) got a strong opinion either way?
Malcolm
I say +1 for consistency
--
Honza Král
E-Mail: Honza...@gmail.com
ICQ#: 107471613
Phone: +420 606 678585
I'm -0, mostly because I still can't *quite* wrap my head around why
anyone really needs this. However I agree that #4534 has the best use
case so far. I suspect that if I saw a working patch I might lean a
bit more towards +0, but it's pretty low on my radar.
Frankly, though, I'm not gonna care much either way, so I think that
if Malcolm's convinced I can arrange to be as well.
Jacob
I had a bit of a conversation with SmileyChris about this in IRC
recently, though that was before this use case came up. I spent about
an hour trying to come up with realistic use cases and was unable to,
but I figured there was a reasonable use case out there somewhere.
With a decent use case and the consistency issue Honza mentioned, I'd
say I'm +0. It's certainly an edge case, but those are really the only
cases where this would come into play.
-Gul
Ok, I attached a patch. The funny thing is that that use-case sounded
good but it won't work due to how {% for %} works - it discards
additions to the context between loops.
{% for match in matches %}
<div class="
{% ifchanged match.ballot_id %}
add-padding
{% else %}
keep-together
{% endifchanged %}
">{{ match }}</div>
{% endfor %}
On Jun 12, 12:42 am, SmileyChris <smileych...@gmail.com> wrote:
> On Jun 12, 8:56 am, "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
> wrote:
>
> > I suspect that if I saw a working patch I might lean a
> > bit more towards +0, but it's pretty low on my radar.
>
btw i'm +1 in case you'd wonder
Niels Poppe