Pages
Introduction
Getting Started
Recipes
Reference
Literals
Arrays
Tuples
Type System
Functions
Modules
Records
Enums
Built-in Types
Constants
Equality
Stores
Routing
Comments
Control Expressions
Components
Properties
Computed Properties
Styling Elements
Connecting Stores
Using Providers
Internal State
Referencing Entities
Global Components
Lifecycle Functions
Directives
JavaScript Interop
Environment Variables
Packages
Directives
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 asHtml
-
@format
- Format the given code and return it as aTuple(a, String)
-
@documentation
- Generate documentation JSON for a given component.