equal
deleted
inserted
replaced
21 # raw export |
21 # raw export |
22 'raw' : {'mimetype': 'text/plain', 'extension':'txt'} |
22 'raw' : {'mimetype': 'text/plain', 'extension':'txt'} |
23 } |
23 } |
24 def content_export2(request, content, title, content_format, format, use_pandoc, download_response): |
24 def content_export2(request, content, title, content_format, format, use_pandoc, download_response): |
25 # TODO : formats must be imported from converters |
25 # TODO : formats must be imported from converters |
26 #import pdb;pdb.set_trace() |
26 # import pdb;pdb.set_trace() |
27 if format == 'raw' : |
27 if format == 'raw' : |
28 export_content = content |
28 export_content = content |
29 elif content_format == 'html' and format == 'html': |
29 elif content_format == 'html' and format == 'html': |
30 export_content = HTML_HEADER % content |
30 export_content = HTML_HEADER % content |
31 elif content_format == 'markdown' and format == 'markdown': |
31 elif content_format == 'markdown' and format == 'markdown': |