I have a Python dictionary like this:
{'test_data': ['reads_1.fq', 'reads_2.fq'], 'test_data/new_directory': ['ok.txt'], 'hello': ['ok.txt'], 'hello/hi/hey': ['b.txt']}
I want to use this in the template(Django) to create a tree structure like:
test_data
reads_1.fq
reads_2.fq
test_data/new_directory
ok.txt
hello
ok.txt
hello/hi/hey
b.txt
How can this be done using javascript? Thanks