exhtml v0.4.0-beta.2 Exhtml.Storage.DefaultStorage

Default empty storage.

Link to this section Summary

Functions

Returns default content for slug which is determinated

Link to this section Functions

Link to this function fetch(slug)
fetch(Exhtml.slug()) :: binary()

Returns default content for slug which is determinated.

  • slug is a key to fetch content with.

Examples:

iex> Exhtml.Storage.DefaultStorage.fetch(:foo)
"default_content_for_foo"