Browse Source

Add spells

marches
Josh Gordon 3 years ago
parent
commit
0f71ebcee5
  1. 4
      app/routes.py
  2. 1
      app/templates/index.html

4
app/routes.py

@ -26,5 +26,9 @@ def places():
def characters():
return render_template('items.html',title="Characters",items=get_items("../Characters/*"))
@app.route('/spells')
def spells():
return render_template('items.html',title="spells",items=get_items("../Spells/*"))
if __name__ == "__main__":
app.run()

1
app/templates/index.html

@ -12,6 +12,7 @@
<li><a href="/items">Items</a></li>
<li><a href="/places">Places</a></li>
<li><a href="/characters">Characters</a></li>
<li><a href="/spells">Spells</a></li>
</ul>
</nav>
</body>

Loading…
Cancel
Save