我想在包含更多内容的 HTML 页面中插入 AutoIndex...类似这样
<html>
<body>
//HTML Content here like IMG, DIV, Table
// Autoindex here
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我正在使用这样的自动索引,但它覆盖了整个页面
import os.path
from flask import Flask
from flask_autoindex import AutoIndex
app = Flask(__name__)
return AutoIndex(app, browse_root='templates/computer1')
if __name__ == '__main__':
app.run()
Run Code Online (Sandbox Code Playgroud)