1
Vote

Bottle template improvements

description

The template is not particularly consistent with respect to how it deals with members of bottle - on one hand, we do:
from bottle import route, template, redirect
On the other, we also import bottle and use that for bottle.run and bottle.default_app. I think it should really be one or the other; probably from ..., because it is shorter. For default_app, we might want to do a local import inside wsgi_app, since the name is a tad too generic.

It would also be nice to have an empty views folder in the project from the get go, and from bottle import view.

comments