© Christopher Pitt and Joe Mancuso 2020
C. Pitt, J. MancusoThe Definitive Guide to Masonitehttps://doi.org/10.1007/978-1-4842-5602-2_9

9. Using Helpers

Christopher Pitt1  and Joe Mancuso2
(1)
Cape Town, South Africa
(2)
Holbrook, NY, USA
 

We’ve already covered a lot of ground, so we’re going to change gears and talk about helpers. In short, helpers are functions we can use from anywhere that do things for us quicker or more efficiently than we could otherwise do. It’s tricky to explain their use without looking at code, so that’s what we’re going to do.

These helpers are available, globally, so you won’t need to import most of them. I’ll tell you what the exceptions are, when it’s important.

The Request and Auth Helpers

This code can be found at https://github.com/assertchris/friday-server/tree/chapter-10 ...

Get The Definitive Guide to Masonite: Building Web Applications with Python now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.