AbsintheGenerator.FileWriter behaviour (absinthe_generator v0.1.1) View Source

Implements a behaviour that each absinthe generator struct implements which enables this module to write contents to the file path defined by the structs callback

Additionally it will determine if there's a web folder and if we need to use that instead

Link to this section Summary

Link to this section Callbacks

Link to this callback

file_path(generation_struct)

View Source

Specs

file_path(generation_struct :: struct()) :: Path.t() | String.t()

Link to this section Functions

Link to this function

write(data, file_contents, opts)

View Source