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

Support lazy django templates rendering (DjangoMessage) #52

Open
lavr opened this issue May 26, 2015 · 0 comments
Open

Support lazy django templates rendering (DjangoMessage) #52

lavr opened this issue May 26, 2015 · 0 comments

Comments

@lavr
Copy link
Owner

lavr commented May 26, 2015

Now we have to make explicit django template rendering:

    from django.template.loader import get_template
    DjangoMessage(html=get_template(template_name).render({'a': 42}, ...)

Proposed way is to support lazy rendering:

    m = DjangoMessage(html=get_template(template_name)
    m.render({'a': 42}, ...)
@lavr lavr assigned lavr and unassigned lavr May 26, 2015
@lavr lavr changed the title Support django templates rendering in DjangoMessage Support lazy django templates rendering (DjangoMessage) May 26, 2015
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

No branches or pull requests

1 participant