My presentations, using Reveal.js (mostly in Portuguese).
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.
 
 
 
 
 

32 lines
761 B

#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""Sample Flask application."""
from flask import Flask
from flask import render_template
from flask import request
app = Flask(__name__)
@app.route('/traditional')
def traditional():
contador = request.values.get('contador', 0)
contador = int(contador) + 1
return render_template('traditional.html',
contador=contador)
@app.route('/spa')
def spa():
return render_template('spa.html')
@app.route('/spa/counter')
def spa_counter():
contador = request.values.get('contador', 1)
contador = int(contador) + 1
return render_template('spa-counter.html', contador=contador)
if __name__ == '__main__':
app.run(host='0.0.0.0', debug=True, threaded=True)