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.

33 lines
776 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__)
10 years ago
@app.route('/traditional/')
def traditional():
contador = request.values.get('contador', 0)
contador = int(contador) + 1
return render_template('traditional.html',
contador=contador)
10 years ago
@app.route('/spa/')
def spa():
10 years ago
return render_template('spa.html', contador=1)
10 years ago
@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)