Gem Version

Carteiro a correr

Install

Add to Gemfile:

gem 'ctt'

or

$ gem install ctt

Install NodeJS and MJML (both installations will works local and global).

$ npm install -g mjml@^4.0.0
$ bundle install

Usage

There are 3 options:

  • parse (only transforms mjml to html)
  • upload (only uploads an html file to a template)
  • refresh (both parses and uploads the file)

This assumes you have a test-template.mjml inside the templates folder

ctt parse test-template
ctt upload test-template
ctt refresh test-template