次のような Python 辞書があります。
{'test_data': ['reads_1.fq', 'reads_2.fq'], 'test_data/new_directory': ['ok.txt'], 'hello': ['ok.txt'], 'hello/hi/hey': ['b.txt']}
テンプレート(Django)でこれを使用して、次のようなツリー構造を作成したい:
test_data
reads_1.fq
reads_2.fq
test_data/new_directory
ok.txt
hello
ok.txt
hello/hi/hey
b.txt
javascriptを使用してこれを行うにはどうすればよいですか? ありがとう