Try Install Learn Blog API Packages GitHub
Pages

Format Directive

The @format directive returns the formatted string version of the code it's given and the result of the code in a tuple Tuple(a, String) . This is created to make it easy to display a simple example of Mint code:

try {
  {result, code} =
    @format {
      <div>
        "Hello There!"
      </div>
    }

  <div>
    <{ result }>

    <pre>
      <code>
        <{ code }>
      </code>
    </pre>
  </div>
}