Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 1.5 KB

README.md

File metadata and controls

66 lines (50 loc) · 1.5 KB

pug-template-email

Template de email generate with pug

The idea is to have a json and consummate to facilitate the maintenance of the code and development

How to use

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

Data news.json Properties.

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

Install

Using npm

npm i

Using yarn

yarn

Start development

Using npm

npm start

Using yarn

yarn start

Build

Using npm

npm run build

Using yarn

yarn build