Skip to content

LLazyEmail/markup-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markup-generator module

yarn add markup-generator

It's just an HTML file generator

Main reason - we want to generate an HTML email newsletter automatically, so generator must have methods that can help you to save a file.

yarn nx test write-module

Submodule for https://github.com/atherdon/markdown-to-email

https://bobbyhadz.com/blog/typescript-write-to-a-file

import { writeHTML, generateTemplateName } from 'markup-generator'

const content = '<html></html>'; // long html template stored in this variable
const fileName = generateTemplateName('prefix-for-your-generated-file');

writeHTML(fileName, content);

TODO

Arthur Tkachenko articles