Can I render Complex JSON structure into soy template for my Tree Viewer widget?
I have to render level n json into template.I have to create all the tags dynamically in the template only, I cant use javascript or jquery to do that stuff for me.For That what I have to do?
I have to render level n json into template.I have to create all the tags dynamically in the template only, I cant use javascript or jquery to do that stuff for me.For That what I have to do?
See my problem is any user can call my widget with different level of tree element which will be wrapped in a JSON object.So I need to create the structure of my mark up by traversing the json only.So that it can support any level of tree.So is it possible to write that recursive function inside closure template? because it needs complex computation.
@Johannes in our case we have to create <ul> and <li> structure accordingly to form the tree and we need to check break condition like JSON has child or not inside our template because in our case level is unknown and we cant create supporting mark up before rendering it to that template, so we have to do it on the fly. So do you have any idea how we can proceed?