Try Install Learn Blog API Packages GitHub


Mint has some language features call directives which interact with the environment or the code itself at compile time.

There are currently 4 directives:

  • @asset - Reference assets such as images / videos / stylesheets
  • @svg - Inline SVG directly as Html
  • @format - Format the given code and return it as a Tuple(a, String)
  • @documentation - Generate documentation JSON for a given component.