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

Add the ability for mailmason to generate and upload/update templates. #34

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

randytarampi
Copy link

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 in secrets.json.

I can rejig the README/wiki if we think this is a good idea.

@randytarampi
Copy link
Author

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?

@gcoombe
Copy link

gcoombe commented Nov 8, 2017

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.

@derekrushforth
Copy link
Contributor

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.

@jmas
Copy link

jmas commented Nov 24, 2017

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.
@gcoombe
Copy link

gcoombe commented May 16, 2018

Any updates on this?

@chrisbloom7
Copy link

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

@randytarampi
Copy link
Author

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.

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.

5 participants