Giter Site home page Giter Site logo

pug-template-email's Introduction

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

pug-template-email's People

Contributors

lucianobarauna avatar

Stargazers

Eduardo Figueiredo Gonçalves avatar Luigui Delyer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.