With flask>=0.10, can use g