Bottle.py - Um site em 5 minutos com o microframework Python
1. Um site em 5
minutos.
Bottle.py
Giovane Liberato SJC Lightning Talks 26 05@ – /
2.
3.
4.
5.
6. “Bottle is a fast simple and,
lightweight WSGI micro
web framework for Python. It is-
distributed as a single file module
and has no dependencies other than
the Python Standard Library.”
12. Templates
Seria tão bom se eu pudesse
tornar o html dinâmico com
condições, loops e variáveis...
Pena que é só um sonho.
13. Templates
<div>
%if not nome:
<h1> Olá estranho </h1>
%else:
<h1> Olá {{nome}} </h1>
%for indice, letra in enumerate(nome):
A {{indice}}ª letra do seu nome é {{letra}}
%end
%end
</div>
AEEEE!!!