You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've successfully used this library in several production Django applications, and have been extremely impressed with the generated emails. The current workflow I use is to:
Create an email with hard-coded data in the online editor
Copy and paste the generated HTML in to a Django .html template file
Manually inspect what needs to be templated out, and swap in Django template tags
I feel like there's potential for a huge improvement to developer experience in steps 1-3, for example something like a custom template tag that handles the compilation behind the scenes when rendering:
{%bootstrap_email%}
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html; charset=utf-8" />
<style>
/* Add custom classes and styles that you want inlined here */</style>
</head>
<bodyclass="bg-light">
<divclass="container">
<p>Hello world</p>
</div>
</body>
</html>
{%end_bootstrap_email%}
I'm not familiar with Ruby, so I'm not sure exactly what work would need to happen to be able to call the compilation code from a Django template tag. I'm guessing a port of the library to Python might be necessary?
Any thoughts or comments would be appreciated!
P.S. Thanks for the work you've put in on this library, it's been incredibly useful.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I've successfully used this library in several production Django applications, and have been extremely impressed with the generated emails. The current workflow I use is to:
.html
template fileI feel like there's potential for a huge improvement to developer experience in steps 1-3, for example something like a custom template tag that handles the compilation behind the scenes when rendering:
I'm not familiar with Ruby, so I'm not sure exactly what work would need to happen to be able to call the compilation code from a Django template tag. I'm guessing a port of the library to Python might be necessary?
Any thoughts or comments would be appreciated!
P.S. Thanks for the work you've put in on this library, it's been incredibly useful.
Beta Was this translation helpful? Give feedback.
All reactions