Closed rochacbruno closed 10 years ago
Sounds good in theory, but after working far too long today I'm not able to mentally separate the PEP8 stuff from the context_processor -> template_global change.
If it is easy for you to do so, can you separate them? Otherwise, give me a little time to review.
Thanks! =]
I don't know if it is possible to merge it without conflicts, but the PR is fine.
The template_global
is better than the context_processor
in this case.
I've made the minimal change in 68a91a151634a87533620fefeff9e3ce7a7eed0b
Thanks for pointing this out (so long ago)!
I changed context_processor to app.add_template_global. context processor adds more complexity to request pipeline, template_global is injected in jinja level.
Fixed "line too long" and "space before operator" PEP8 errors.