Re: Potential bug in template parsing

2013-11-23 Thread Glen Mazza
Patch done: https://code.google.com/a/apache-extras.org/p/roller-extras/issues/detail?id=1 ; Dave, if you can apply or grant me karma (glen dot mazza at gmail) to this project so I can apply it, it would be appreciated, thanks. Glen On 11/22/2013 04:34 PM, Glen Mazza wrote: OK, I see the Velo

Re: Potential bug in template parsing

2013-11-22 Thread Glen Mazza
OK, I see the Velocity reason now: http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html#index, in their given example: $foo.callMethod()[1] , foo.callMethod() could return a List or an Array, for which the [1] would mean retrieve the first element from. So yes, if we don't

Re: Potential bug in template parsing

2013-11-21 Thread Glen Mazza
Thanks Greg. Is this a Roller bug or just the way Velocity (now) is? I assume the latter... Glen On 11/21/2013 03:02 AM, Greg Huber wrote: Glen, Remember this from a while back, it needs a space or you could escape it with {} notation. eg $text.get("macro.weblog.comments") [$commentCount]

Re: Potential bug in template parsing

2013-11-21 Thread Greg Huber
Glen, Remember this from a while back, it needs a space or you could escape it with {} notation. eg $text.get("macro.weblog.comments") [$commentCount] or ${text.get("macro.weblog.comments")}[$commentCount] Cheers Greg On 17 November 2013 12:49, Glen Mazza wrote: > Hi Team, > > I'm trying

Re: Potential bug in template parsing

2013-11-18 Thread Dave
On Sun, Nov 17, 2013 at 7:49 AM, Glen Mazza wrote: > Hi Team, > > I'm trying to use the "Rolling" theme (http://code.google.com/a/ > apache-extras.org/p/roller-extras/wiki/Themes) on Roller trunk, it seems > to work fine except for one issue. Here's the standard 5.1 Basic theme's > code (simplif

Potential bug in template parsing

2013-11-17 Thread Glen Mazza
Hi Team, I'm trying to use the "Rolling" theme (http://code.google.com/a/apache-extras.org/p/roller-extras/wiki/Themes) on Roller trunk, it seems to work fine except for one issue. Here's the standard 5.1 Basic theme's code (simplified) for the "Comments[x]" portion for a blog entry: class