yi-refs / json-template

Automatically exported from code.google.com/p/json-template
0 stars 0 forks source link

Nested repeated section issue #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Got this template to reproduce a sort of breadcrumbs output:
[ul class="path"]
{.repeated section outer}
    [li]
        {.repeated section inner}
            [a href="#"]{someproperty}[/a] >    
        {.end}
        [a href="#"]{someotherproperty}[/a]
    [/li]
{.end}  
[/ul]

When the outer has only one inner element it doesn't show it, if it has
more than one it shows perfectly. 
What version of the product are you using? On what operating system?

I've tested in macosx leopard firefox 3 and safari 4.

Any clues ?

Original issue reported on code.google.com by fernando...@gmail.com on 22 Jun 2009 at 5:01

GoogleCodeExporter commented 8 years ago
Forgot to mention: json-template.js pre-release at r210 

Original comment by fernando...@gmail.com on 22 Jun 2009 at 5:02

GoogleCodeExporter commented 8 years ago
The template looks fine.  Can you post the data dictionaries you're using?

There's a test that verifies the behavior of nested repeated sections, so this 
should
be working:

http://chubot.org/json-template/test-cases/testNestedRepeatedSections-01.html

Original comment by gtempacc...@yahoo.com on 23 Jun 2009 at 5:21

GoogleCodeExporter commented 8 years ago
Template works fine, json-template is doing well. 
In my case, all json data dictionaries are developed by the xml2json package, 
so I
have control over the xmls that serves as input to xml2json instead of json 
data.
The problem is related to how xml2json rendered the json data object.
Thanks for you invaluable support !

Original comment by fernando...@gmail.com on 23 Jun 2009 at 3:46

GoogleCodeExporter commented 8 years ago
OK, glad to hear that.

Original comment by gtempacc...@yahoo.com on 10 Jul 2009 at 6:30