Skip to content
No description, website, or topics provided.
Elixir CSS JavaScript HTML Shell
Branch: master
Clone or download
This branch is even with lukascivil:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
config
lib
priv
test
.formatter.exs
.gitignore
README.md
mix.exs
mix.lock
package-lock.json

README.md

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": []
}
You can’t perform that action at this time.