<p dir="ltr">I think I'll add it with a warning message to change to the new behavior when the user uses it the old way. </p>
<div class="gmail_quote">Em 26 de fev de 2016 20:20, "Lubomir I. Ivanov" <<a href="mailto:neolit123@gmail.com">neolit123@gmail.com</a>> escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 27 February 2016 at 01:04, Dirk Hohndel <<a href="mailto:dirk@hohndel.org">dirk@hohndel.org</a>> wrote:<br>
> On Sat, Feb 27, 2016 at 12:58:29AM +0200, Lubomir I. Ivanov wrote:<br>
>> On 27 February 2016 at 00:24, Dirk Hohndel <<a href="mailto:dirk@hohndel.org">dirk@hohndel.org</a>> wrote:<br>
>> > Both of the options you offer above sound like they have significany drawbacks, but I'd really<br>
>> > like to know how this would look from a user's perspective.<br>
>><br>
>> the refactoring Tomaz did, introduced a minor regression in the<br>
>> Grantlee variable syntax which is exposed to the user.<br>
>> NOTE: the same applies to both weights and cylinders, but i'm going to<br>
>> talk about weights (for the sake of example).<br>
>><br>
>> latest public release (i think?) has these:<br>
>> - dive.weights used to print all weight details<br>
>> - dive.weight1-N prints a single weight detail<br>
>><br>
>> master:<br>
>> - dive.weights, should print all weight details again, but it doesn't<br>
>> work for me<br>
>> - dive.weight.1-N (notice the extra dot)<br>
>><br>
>> the options are simple: fix dive.weights and 1) use the new syntax for<br>
>> 1-N or 2) bring back the old syntax.<br>
>> if we introduce the new syntax it has to be re-documented and it will<br>
>> break at least for the user who originally requested the feature.<br>
>><br>
>> what is currently is master is much more tidy, code wise and if we<br>
>> bring back the old syntax it will make the code less pretty.<br>
><br>
> I don't want to break this for the user, so my strong preference would be<br>
> to go with the less pretty code that does what the users may already have<br>
> in their template files.<br>
><br>
<br>
ok, i understand.<br>
<br>
Tomaz, for the variables not to break i think we need to introduce a<br>
property and a getter method for every Grantlee variable, e.g.:<br>
dive.weight1, dive.weight2...dive.weightN<br>
dive.cylinder1, dive.cylinder2...dive.cylinderN<br>
<br>
lubomir<br>
--<br>
</blockquote></div>