Exemplo n.º 1
0
 def handle(self, *args, **options):
     data = get_assets()
     for ext, chunks in data.items():
         for name, files in chunks.items():
             print('{}.{} {}'.format(ext, name, files))
Exemplo n.º 2
0
def render_assets(name):
    value = get_assets()
    for part in name.split('.'):
        value = value[part]
    return ''.join([_render_item(item)
                    for item in value])