Covered Hubspot Email Builder
By Peter Laxalt www.laxaltandmciver.co Made with Jekyll & Gulp to make Hubspot Email Templates. For Covered.
To Start
npm install
cd src
bundle install
cd ../
- Make sure you
npm install
yourgulp
dependencies as well.
To Run
Simply run gulp
from the root directory.
To Debug
cd src && bundle exec jekyll serve
from root.gulp watch
from root.- View your files from the
/build/
folder.
It's throwing an error at the janky Python server that is running
sudo lsof -i tcp:8080
sudo kill -9 PID
wherePID
is thePID
of said server.
Using Dummy Data
- We have 4
_data_
files:contact.json
,contact.json
,standard.json
, andstandard.json
. Each is used for either dummy data, or replacing your dummy data with actual Hubspot properties. If you want to code with dummy data, use the{{ site.data.data_source.data_property }}
syntax. For export, use the{{ site.data.data_source_hs.data_property }}
syntax. The_hs
is key, and I usually do a quick find + replace to change to that. We should change process this to an overall settings file for aexport: true
field down the road.
Fire up an .ngrok server to test on your devices
- You can access your
localhost
from any device because.ngrok
is awesome. - In the
/_ngrok/
folder you'll find a .zip file with .ngrok in it. Install that. - In terminal, simply type
$ ./ngrok http ####
to fire up a server and they will provide urls.####
will be your desired port number. - Be sure that if you are on development and potentially behind a directory such as
/covered-hubspot/
, you'll have to append that to your .ngrok url.