save: Save

Description Usage Arguments Value Functions See Also Examples

Description

Save your email with .mjml extension.

Usage

1
2
3
4
5
mj_convert(mjml, output = NULL, path = NULL)

mj_validate_mjml(input, path = NULL)

mj_sendmailr(mjml, path = NULL)

Arguments

mjml

MJML email as returned by mj_ml.

path

Path to mjml installation, if NULL attempts to find the path with find_mjml.

input, output

input and output files.

...

Any other option to be passed to writeLines.

Value

Path to output.

Functions

See Also

https://mjml.io/documentation/#command-line-interface

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
email <- mj_ml(
  mj_body(
    mj_container(
      mj_section(
        mj_column(
          mj_text("First column")
        ),
        mj_column(
          mj_text("Second column")
        )
      ),
      mj_section(
        mj_column(
          mj_image(paste0("https://media.vanityfair.com/photos/",
                          "54cbf3da998d4de83ba3602a/master/w_960,",
                          "c_limit/image.jpg")
                   )
        )
      )
    )
  )
) 

## Not run: html <- mj_convert(email)

JohnCoene/mjml documentation built on June 21, 2020, 11:42 a.m.