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

Grunt task to render Mustachio templates #29

Open
hardingmatt opened this issue Oct 1, 2019 · 1 comment
Open

Grunt task to render Mustachio templates #29

hardingmatt opened this issue Oct 1, 2019 · 1 comment

Comments

@hardingmatt
Copy link

My team uses MailMason and Postmark, to manage all our transactional email templates.

Request:

I would like to have a grunt task that takes my generated .html Mustachio templates, and renders them with a variables file, e.g. variables.json.

This functionality exists for both Handlebars (grunt-compile-handlebars) and Mustache (grunt-mustache-render). But I can't seem to find a prebuilt way to do this for Mustachio.

My use case:

  • I start with .hbs files, then automatically generate the .html/.txt templates, then test them manually in the Postmark console with predefined variables, then upload them from the command line.
  • Instead of the manual step, I would like to automatically send myself the generated emails, with all the sample variable values filled in.

I would suspect other Postmark customers have this same use case. Can you please let me know if a solution already exists for this? Sorry if a Github Issue was not the right way to handle this request. Thanks! 🙌

@iampava
Copy link

iampava commented Jul 15, 2021

+1. We've just integrated MailMason and it's a little weird to not have a Grunt task for this 🤔 Or some way to render Mustachio templates after the Handlebars is compiled.

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

2 participants