View Source FsBuild.Adapter behaviour (FsBuild v1.0.1)
The specification of adapters.
Link to this section Summary
Types
The content of file.
The main data transformed from file.
The metadata transformed from file.
The option for current adapter.
The path of file.
Link to this section Types
Link to this section Callbacks
@callback init(opts()) :: :ok
Prepares for following works, such as:
- checking required dependencies
- starting necessary applications
- ...
Transforms the content of files.
It must return:
- a 2 element tuple with attributes and body -
{data, metadata}
a list of 2 element tuple with attributes and body -
[{data, metadata} | _]