Upload files to "/"
This commit is contained in:
8
app.py
8
app.py
@ -105,6 +105,14 @@ def methodology():
|
||||
content = get_methodology_content()
|
||||
return render_template('methodology.html', content=content)
|
||||
|
||||
@app.route('/methodology/<title>')
|
||||
def methodology_section(title):
|
||||
content = get_methodology_content()
|
||||
section = next((s for s in content if s["title"].replace(" ", "_").lower() == title.lower()), None)
|
||||
if not section:
|
||||
abort(404)
|
||||
return render_template('section.html', section=section)
|
||||
|
||||
@app.route('/linux')
|
||||
def linux():
|
||||
sections = get_linux_content()
|
||||
|
Reference in New Issue
Block a user