Nabo v0.0.1 Nabo.Repo behaviour
Precompiles and provides interface to interact with your posts.
Example
defmodule MyRepo do
use Nabo.Repo, root: "priv/posts"
end
{:ok, posts} = MyRepo.all
{:ok, post} = MyRepo.get("foo")
post = MyRepo.get!("foo")
Link to this section Summary
Callbacks
Fetches all available posts in the repo
Fetches all availables post names in the repo
Finds a post by the given slug
Similar to get/1
but raises error when no post was found