0.0.15 • Published 3 years ago

gemkt v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Gemkt

a email marketing generator.

type node . help to see the lite doc of the gemkt

Project struct to run the library

📦teste
 ┣ 📂htmls
 ┃ ┣ 📂build
 ┃ ┃ ┗ 📜index.html
 ┃ ┣ 📜out.html
 ┃ ┗ 📜template.html
 ┣ 📂images
 ┃ ┣ 📜index_02.png
 ┃ ┣ 📜index_03.png
 ┃ ┗ 📜index_04.png
 ┣ 📜data.json
 ┣ 📜gemkt.config.js
 ┣ 📜index.js
 ┗ 📜package.json

GEMKT function

Parameters

GEMKT config file js (gemkt.config.js)

Gemkt configuration works with a gemkt.config.js file declareted in your project root.

Example of gemkt.config.js file

const { resolve } = require('path');

config = {
  paths: {
    outFile: resolve('htmls/out.html'),
    templateFile: resolve('htmls/template.html'),
    imagesFolder: resolve('images/'),
    dataFile: resolve('data.json'),
  }
}

module.exports = config

The Data file

In your projet you will declare a data.json file, with contains the images, links and alts of the email marketing.

Its a Arry with each element contains a Object with image, link and alt for construct the html file.

The especial CleanCache prop

In Gemkt main function parameter object, exists a prop calls cleanCache. This props when true automatically clean the link, alt, image filds of data.json and populates data.json with images based on images folder

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago