def preview(file):
tree, limit_reached, error = make_tree(file)<EOL>list = children_to_list(tree)['<STR_LIT>']<EOL>return render_template(<EOL>"<STR_LIT>",<EOL>file=file,<EOL>tree=list,<EOL>limit_reached=limit_reached,<EOL>error=error,<EOL>js_bundles=current_previewer.js_bundles + ['<STR_LIT>'],<EOL>css_bundles=current_previewer.css_bundles,<EOL>)<EOL>
Return appropriate template and pass the file and an embed flag.