another bit of code formatting, minor
introducing prepare_locals() and rendering templates with res.locals
employ prepare_locals as a middleware
simpler template extend syntax