3 ms·
I think this is just a design choice to avoid confusion between request / session parameters in the view functions versus path parameters. It's quite nice that
by m_mueller 10y ago
I think this is just a design choice to avoid confusion between request / session parameters in the view functions versus path parameters.
It's quite nice that you can just do
@route("/<post_id>")
def my_view(post_id):
....
never having to register anything and just decorating your functions with these path decorators gets you started really really fast. That's how a flask hello world is just 6 LOC and `python ./my_server.py`.