Generate homepage in the Browsersync root with links/screenshots to all your email templates

§ Use it

Once installed, call it in the root of your templates projects:

homey "dist"

§ What it does

email-homey helps to generate a homepage with a list of all your email templates.

It will expect that all your email templates will be located within a certain folder.

Specifically, email-homey will scan a all subfolder names of the path you give it (like dist in the example above) and will go inside that folder, look for seed.html, copy it into index.html (overwriting if such file already exists) and inside that file, replace word 'magicFoldersList' with a list of folder names (maintaining correct indentation).

This is all you need to be able to pull off a homepage driven by a Vue.js opens in a new tab. An HTML file with Vue.js script can't query your hard drive and find the subfolder names. For that we need Node. Once Vue.js has the list of folder names (in an array), it can generate a table of templates.

§ Changelog

See it in the monorepo opens in a new tab, on Sourcehut.

§ Licence

MIT opens in a new tab

Copyright © 2010–2020 Roy Revelt and other contributors

Related packages:

📦 email-comb 4.0.5
Remove unused CSS from email templates
📦 email-all-chars-within-ascii-cli 1.11.1
Command line app to scan email templates, are all their characters within ASCII range
📦 email-all-chars-within-ascii 2.10.1
Scans all characters within a string and checks are they within ASCII range