This repository contains a basic setup for an Express server using Handlebars as the template engine.
It provides a way to update sendgrid templates using VSCode, making it easier to read and maintain.
Follow these steps to set up and run the Express server:
-
Clone the Repository:
git clone https://github.com/your-username/your-handlebars-repo.git
cd your-handlebars-repo -
Install Dependencies:
yarn -
Run the Server:
yarn start
The server will start and be accessible at http://localhost:3000.
How to Retrieve SendGrid Template Code
-
Run the Server:
Before retrieving the code, make sure the server is running using the steps above. -
View the Page Source:
Open your web browser and navigate to http://localhost:3000. Right-click on the page and select "View Page Source" or "Inspect." This will open the browser's developer tools. -
Copy the HTML Code:
In the developer tools, find the code you want to use for the SendGrid template. Select and copy the relevant code. -
Paste into SendGrid Template:
Log in to your SendGrid account. Create or edit an email template. In the "<> Code" section, paste the copied HTML code. -
View and Test:
Check for updates in the view section and test it with your email campaign.