view.render()object in the controller method. This will return a
Viewinstance which Masonite will extract out the rendered html template from it.
Viewobject which Masonite will then pull the HTML information that Jinja has rendered. This is the normal process of returning your templates. You can do so by type hinting the view class and using the render method:
Paginator. You can do so easily by using the
?page=input and you can change the amount of results per page by using the
/api/users?page=2&page_size=5. This will return 5 results on page 2 for this endpoint.
json()method. This simply requires a dictionary:
Content-Length, status code and the actual response for you.
view()method either takes a
Viewobject or a string: