A YAML decoder for Elixir.
Add it (to mix.exs
)
def deps do
[{:mark_yamill, "~> 0.2.1"}]
end
Start it (in mix.exs
)
def application do
[applications: [:mark_yamill]]
end
Download it
$ mix deps.get
Run it!
$ iex -S mix
iex(1)> yaml = "---\nfoo: bar\nhello: world\n"
"---\nfoo: bar\nhello: world\n"
iex(2)> MarkYamill.decode(yaml)
%{"foo" => "bar", "hello" => "world"}