Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 784 Bytes

Email-flow.md

File metadata and controls

31 lines (26 loc) · 784 Bytes
graph TB
    A[Easy email editor ] -->|Drag and drop | B(Generate template json)
    B --> Condition{"-"}

   Condition--> |Preview| C("
   mjmlString = JsonToMjml({
    <br/> mode: 'production',
    <br/>data: pageData,
    <br/> context: pageData,
    <br/>  dataSource: previewInjectData || mergeTags,
    <br/> })
    ")
    C-->D("html = mjml-browser(mjmlString)")
    D-->E("onBeforePreview(html, previewInjectData || mergeTags)")
    E-->F("Final html")

    Condition-->|Server-side send email|G("
   mjmlString = JsonToMjml({
    <br/> mode: 'production',
    <br/>data: pageData,
    <br/> context: pageData,
    <br/>  dataSource: dynamic data,
    <br/> })
    ")
    G-->H("html = mjml(mjmlString)")
    H-->I("Final html")


Loading