Add converter for mjml template

This commit is contained in:
Glenn Y. Rolland 2020-12-06 23:52:08 +01:00
parent d7b75737df
commit 11eca44374

View file

@ -25,3 +25,18 @@ clean: ## remove build artifacts
test: build
./test.sh
npm:
npm install
MJML_TEMPLATES=$(wildcard templates/*.mjml)
MJML_OUTPUT=$(patsubst %.mjml,%.mjml.html,$(MJML_TEMPLATES))
%.mjml.html: %.mjml
npx mjml $< --config.minify > $@
templates: $(MJML_OUTPUT)
.PHONY: templates