[go: up one dir, main page]

Discussion about this post

User's avatar
Waine Oliveira Jr's avatar

I never heard of the @wrap and it's exactly what I was looking for. Great article!

Mark Sundstrom's avatar

Nice explanation. I built one that's similar that I use in Flask apps that captures print output and returns it as part of the context either in a Jinja template or directly as a 'text/plain' response. I find this especially useful when I'm constructing a new view and don't want to build the template yet. I started with the 'templated' decorator that's in the Flask documentation and modified that.

No posts

Ready for more?

    This site requires JavaScript to run correctly. Please turn on JavaScript or unblock scripts