Hey all,

I have the following map given back from the app. that
is shown via the USE Dumper;

$VAR1 = {
'3' => {
'8' => {
'11' => {}
},
'0' => {
'13' => {},
'9' => {
'7' => {}
}
},
'1' => {
'10' => {
'7' => {}
}
},
'2' => {
'12' => {}
}
},
'4' => {
'8' => {
'11' => {}
},
'2' => {
'12' => {}
}
}
};

from this I need to generate this JS structure. I've
tried, but things muck up.


var jsarray=[
['item',
['secitem,[
    ['locitem',[]],
    ['locitem2',['miscitem']]
         ]
 ],
['secitem2',[
    ['locitem',['miscitem']]
             ]
],

you see? for some reason I can't put put arrays
withint arrays within arrays with TT...

any help?


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to