Browse Source

move mimetype mappings to separate file

master
rra 5 years ago
parent
commit
1611144f72
  1. 13
      distribusi/mappings.py

13
distribusi/mappings.py

@ -0,0 +1,13 @@
CODE_TYPES = ['x-c', 'html']
FILE_TYPES = {
'image': '<figure><img class="image" src="{}"><figcaption>{}</figcaption></figure>',
'pdf': (
'<object data="{}" class="pdf" type="application/pdf">'
'<embed src="{}" type="application/pdf" /></object>'
),
'text': '<a href="{}" class="text">{}</a>',
'video': ('<video class="video" controls>' '<source src="{}"></source></video>'),
'audio': ('<audio controls class="audio">' '<source src="{}"></source></audio>'),
}
Loading…
Cancel
Save