-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add the ability for mailmason
to generate and upload/update templates.
#34
base: main
Are you sure you want to change the base?
Add the ability for mailmason
to generate and upload/update templates.
#34
Conversation
bump Just doing some fall cleaning and saw this was still open. Think we might be able to get some eyes on this soonish @derekrushforth? |
This would be extremely helpful for me as well. I'm using @randytarampi 's fork for now but it would be great to get back onto master at some point. |
Hey @randytarampi, I'm going to do some thorough testing of both PRs next week. Apologies for getting to this so late. Thanks for taking the time to do this. This is going to be sweet. |
I'm also using @randytarampi 's fork. It will be good if this functionality will be at master and updating with mailmason. |
Per @derekrushforth's comments on ActiveCampaign/grunt-postmark#3. [This](ActiveCampaign/grunt-postmark#3 (comment)) will break things for folks who are already using these changes (@gcoombe and @jmas) as we're now looking for `lowerCamel` variable names instead of `Title` cased ones. Just means a quick find/replace for `Name`/`name, `Subject`/`subject`, etc. I've internally changed the implementation of `postmark-templates-upload` to support in-memory `htmlBody` and `textBody` as well as lazy loaded paths `htmlSrc` and `textSrc` as @hybernaut originally had it. I didn't actually notice how far my changes had deviated from the default options for the `postmark-templates-upload` task when I filed the PR, but I actually like the idea of loading the template files instead of expecting them to be passed along as task data.
Any updates on this? |
I'd like to +1 this, but I also want to call out one problem that we ran into while using Mandrill, which is that some folks were updating templates directly in the UI while others were (as per best practices) updating in our external email template repo and then copying/pasting them over the existing templates. This meant any changes added via the UI were lost. One thing that I had hoped to write but never got around to was a way to do a diff with a pull/push and call out possible conflicts. Might be nice to give that some consideration here, even if just calling it out in the documentation |
I was actually just about to write up the documentation here when I realized that everything's in the wiki and not the README. I can add things to the wiki once this gets merged and published but I'm pretty hesitant to add it now while this is still on a branch since it might be misleading. Do agree that it is a major issue. Caused a couple of headaches in our use case as well – just ended up keeping changes to emails restricted to developers via Mailmason. I can get behind the push/pull diff idea though – sounds like something for another PR based on this though. |
See ActiveCampaign/grunt-postmark#3 for more details. This is heavily coupled with that PR.
Add an
upload
task that will generate templates in./dist
and then upload them to a postmark server specified insecrets.json
.I can rejig the README/wiki if we think this is a good idea.