Skip to content

lukascivil/elixir_with_mjml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirWithMjml

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

alt tag

<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-text font-size="20px" color="#F45E43" font-family="helvetica">Elixir with mjml</mj-text>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

Post : localhost:4000/api/mjml

{
 "minify": false,
 "mjml": "<mjml>...</mjml>"
}

Response :

{
 "html": "<!DOCTYPE HTML><html>...</html>",
 "errors": []
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published