Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a responsable class and mail is responsable #892

Merged
merged 3 commits into from
Sep 14, 2019
Merged

Conversation

josephmancuso
Copy link
Member

@josephmancuso josephmancuso commented Sep 8, 2019

[x] Added a responsable class

  • Any class that inherits the Responsable class and implements a get_response() method can now be returned in a controller method

[x] Mail classes are now responsable.

You can return a mail template and view the mail in the browser

def show(self, mail: Mail):
    return mail.to('user@email.com').template('some.template', {'key': 'value'})

Closes #891

@josephmancuso josephmancuso merged commit 85a26c7 into develop Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant