Template de email generate with pug
The idea is to have a json and consummate to facilitate the maintenance of the code and development
The image files are inside the src/img
directory and your images must be
stay in that location.
The html lies with Pug includes for easy maintenance.
Obs: This project is only a basis for explaining logic. You are free to change it any way you like to fit your scope
The template configuration file is located in src/data/news.json
. Below I describe the configuration of this file for civil construction
This json is the standard of explanation and can be changed according to its scope.
Props | Types | Description |
---|---|---|
typeLayout | String | Configuration for layout type |
columns.linkProd | String | Product Link |
columns.linkProd.image.src | String | Image Link |
columns.linkProd.image.alt | String | Alt text |
spaceImg or space | Boolean | Configuration for layout type |
Using npm
npm i
Using yarn
yarn
Using npm
npm start
Using yarn
yarn start
Using npm
npm run build
Using yarn
yarn build