コード例 #1
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def test():
    return render_template('test.html', title='Test', styles=['test.css'], scripts=['test.js'])
コード例 #2
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def index():
    return render_template('index.html', title='Mohsin Ul Haq', styles=['index.css'], scripts=['index.js'])
コード例 #3
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def about():
    return render_template('about.html', title='About Me', styles=[], scripts=[])
コード例 #4
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def not_found(error):
    return render_template('404.html'), 404
コード例 #5
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def pagination():
    return render_template('pagination.html', title='Pagination', styles=['pagination.css'], scripts=['pagination.js'])
コード例 #6
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def facebook():
    return render_template('facebook.html', title='Facebook', styles=['facebook.css'], scripts=['fbsdksetup.js', 'facebook.js'])
コード例 #7
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def regex():
    return render_template('regex.html', title='Regex Validation', styles=['regex.css'], scripts=['regex.js'])
コード例 #8
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def radio():
    return render_template('radio.html', title='Custom Radio', styles=['radio.css'], scripts=[])
コード例 #9
0
ファイル: views.py プロジェクト: mohsinulhaq/flask
def autocomplete():
    return render_template('autocomplete.html', title='Autocomplete', styles=['autocomplete.css'], scripts=['autocomplete.js'])