Skip to content

lucianobarauna/pug-template-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Template de email generate with pug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published