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

[feature] Enable template variables in messages #143

Merged
merged 1 commit into from
May 2, 2019
Merged

Conversation

sman591
Copy link
Member

@sman591 sman591 commented Apr 22, 2019

Fixes #139

Enables us to do things like:

Hey {{first_name}},

Thanks for confirming your RSVP to {{hackathon_name}}! We can't wait to see you there.

{{#bus_list_exists?}}
  You've also signed up for the {{bus_list_name}} bus. Nice!
{{/bus_list_exists?}}

Can't attend anymore? <a href="{{deny_rsvp_url}}">RSVP as not attending »</a>

If you have any questions, let us know!

 - The {{hackathon_name}} Team

All of these variables are configured in a single YAML file, config/template_variables.yml, which defines the variable name, description, an example value, and Ruby code for defining the variable.

Example values are used to render on the screen when building email messages.

Screen Shot 2019-04-22 at 1 19 19 AM

@sman591 sman591 merged commit a3927dc into master May 2, 2019
@sman591 sman591 deleted the email-templating branch May 2, 2019 18:23
sman591 added a commit that referenced this pull request May 21, 2019
* master: (60 commits)
  Update description
  Clean up usage
  Add Doorkeeper to readme
  Remove empty class on body
  [improvement] Better listing display of environment var config (#150)
  Update gems
  [improvement] Add button style for emails
  Clean up email template
  [feature] Configure remaining automated emails from UI (#148)
  [fix] Remove hard-coded debug flashes
  [improvement] Separate info from error flash notices (#149)
  [fix] Include admins in everyone message recipient
  [fix] Selectize style on message form
  [fix] Fix message form UI controls
  Enable ES6 use with uglifier
  Update gems
  [feature] Enable template variables in messages (#143)
  [dokku] Tweak checks schedule
  Note development utilities in readme
  [blazer] Fall back to DATABASE_URL if BLAZER_ isn't set
  ...
@sman591
Copy link
Member Author

sman591 commented May 23, 2019

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

Support variables in message bodies
1 participant