Vincent Massol a écrit :
> On Apr 17, 2009, at 3:10 PM, Ludovic Dubost wrote:
>
>
>> Let's be clear with exact examples:
>>
>> With B2/ rule what do we get for
>>
>> I like this
>> #if($a==1)
>> apple
>> #else
>> orange
>> #end
>> blabla
>>
>> I would like to get
>>
>> I like this
>> apple
>> blabla
>>
>> Which is passed to the following rendered.
>>
>> I agree that white spaces should be non meaningful
>>
>> I like this
>> #if($a==1)
>> apple
>> #else
>> orange
>> #end
>> blabla
>>
>
> In B2 you'd be able to write:
>
> ------ start here -----
> I like this
>
> ## Compute the list of fruits to be...
> #if ($a == 1)
> apple
> #else
> orange
> #end
>
> $nl
> blabla
> ------ stop here -----
>
> Note the extra lines to present the code in a clean manner that is
> readable (as we do for any java code - count the number of empty new
> lines we have in code just to make it more readable).
>
Yes but if you want to actually put new lines you'll have to add $nl
I fear that this will lead to plenty of pages saved where you then
realize that you forgot plenty of $nl
Anyway, I have the feeling that we cannot know which one is good unless
we actuall test them.
Anyway to implement a mode on {{velocity}} so that we can decide later
which one to use as default ?
Ludovic
> -Vincent
>
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs