def preview(file):
file_info = validate_csv(file)<EOL>return render_template(<EOL>'<STR_LIT>',<EOL>file=file,<EOL>delimiter=file_info['<STR_LIT>'],<EOL>encoding=file_info['<STR_LIT>'],<EOL>js_bundles=current_previewer.js_bundles + ['<STR_LIT>'],<EOL>css_bundles=current_previewer.css_bundles,<EOL>)<EOL>
Render appropiate template with embed flag.