-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
36 lines (24 loc) · 787 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- coding: utf-8 -*-
from flask import Flask, render_template
from pykakasi import kakasi as ka
app = Flask(__name__, static_folder="./static", template_folder="./templates")
@app.route('/')
def index():
name = "Hoge"
return render_template('hello.html', name=name)
@app.route('/hello')
def hello():
name = "Hoge"
return render_template('hello.html', name=name)
@app.route('/rolling_ryu')
def rolling_ryu():
return render_template('rolling_ryu.html')
@app.route('/localStorage')
def localStorage():
return render_template('localStorage.html')
@app.route('/morsecode_translate')
def morsecode_translate():
return render_template('morsecode_translate.html')
## おまじない
if __name__ == "__main__":
app.run(debug=True)