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

Make Dynamic Email Template with JSON data or APIs #87

Open
mddanishyusuf opened this issue Jul 14, 2019 · 0 comments
Open

Make Dynamic Email Template with JSON data or APIs #87

mddanishyusuf opened this issue Jul 14, 2019 · 0 comments
Assignees
Labels
dailyhack This issue belongs to dailyhack.xyz editor tool This is issues is about the tool

Comments

@mddanishyusuf
Copy link
Owner

mddanishyusuf commented Jul 14, 2019

Dynamic Email Template

This tool will Generate Email Template Code with Dynamic Data as JSON object or API. Get the generated email template and add into Mailchimp, Sendgrid or whatever service you are using to send newsletters.

Tool Website: https://dynamic-template.xyz

How to use

Step 1 : Add your template code into "Code" with Handlebars syntax to iterate and bind dynamic data with Email Template code. Ex:

<table>
    <tr>
        <td>
            <h2>Public APIs Weekly</h2></td>
    </tr>
    {{#each items}}
    <tr>
        <td>
            <h3 style="margin: 0; padding:0">{{title}}</h3>
            <p style="margin: 0; padding:0">{{description}}</p>
        </td>
    </tr>
    {{/each}}
</table>

Here you can get to know about Handlebars syntax https://handlebarsjs.com/

Step 2 : Add the JSON data into "Test Data" to bind with the Email Template. If you have API endpoint for the data then you can alse get data through your REST API. Just add your API and click "Get Data". Ex:

{
  "name": "Danish",
  "email": "mddanishyusuf@gmail.com",
  "items": [
    {
      "title": "GitHub API",
      "description": "Information for a user's Github profile"
    },
    {
      "title": "Open Collective",
      "description": "Platform where communities can collect and disburse money transparently to sustain themselves and develop their activities"
    },
    {
      "title": "Fortnite",
      "description": "Fortnite Stats & Cosmetics"
    }
  ]
}

That's all.

Get your generated Email Template from "Template".

Tool Website: https://dynamic-template.xyz

@mddanishyusuf mddanishyusuf self-assigned this Jul 18, 2019
@mddanishyusuf mddanishyusuf added dailyhack This issue belongs to dailyhack.xyz editor tool This is issues is about the tool labels Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dailyhack This issue belongs to dailyhack.xyz editor tool This is issues is about the tool
Projects
None yet
Development

No branches or pull requests

1 participant