Contact me to be added to this repository. Push the creations you make for D&D, and they will be displayed in a nice website. See the website for how to contribute.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
836 B

from flask import Flask
from flask import render_template
from flask import request
from items import get_items
app = Flask(__name__)
@app.route('/style.css')
def style():
return render_template('style.css')
@app.route('/')
def index():
return render_template('index.html')
@app.route('/items')
def items():
return render_template('items.html',title="Items",items=get_items("../Items/*"))
@app.route('/places')
def places():
return render_template('items.html',title="Places",items=get_items("../Places/*"))
@app.route('/characters')
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()