在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ireade/gulp-email-workflow开源软件地址(OpenSource Url):https://github.com/ireade/gulp-email-workflow开源编程语言(OpenSource Language):HTML 49.8%开源软件介绍(OpenSource Introduction):A Gulp Workflow for Building HTML EmailsThis is a workflow for building HTML emails using Gulp. It comes with a default MailChimp-supported template. What it does -
Getting Started1. Install dependenciesThis workflow requires the following dependencies -
2. Clone this repository
3. Install packages
4. Start build
The compiled and inlined output email will be in the How to useCreating templatesNunjucks is used for compiling template files to HTML. Templates are stored in To include a partial in your template, use the following syntax -
To define a block of dynamic content to be replaced by the email file, use the following syntax -
Creating emails from templatesTo create an email based off a template file, create a new file in the Specify which template to use using the following syntax -
To define the contents of a dynamic content block, use the following syntax -
Working with global dataGlobal data is stored in the var globalData = {
DATA_NAME_1: require('./src/data/FILE_NAME_1.json'),
DATA_NAME_2: require('./src/data/FILE_NAME_2.json')
}; For example - var globalData = {
mailchimp: require('./src/data/mailchimp.json')
}; CSSSASS files are stored in the
You can create subdirectories within the SASS folder to hold any partials. Make sure to precede the name of a partial with an underscore, e.g. Generating the zip fileYou can also generate a zip file of the
Alternatively, you can add it to the default and watch gulp tasks to have it generated automatically. Footnotes
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论