exhtml v0.1.0-beta.1 Exhtml.Host

Exhtml.Host represents the content server.

Summary

Functions

Deletes the content from a host

Gets html content from a host

Sets html content to a host with a slug

Sets the content fetcher. A fetcher is used to fetch content from the data source, such as a remote server

Starts a host

Fetchs and sets the content from the storage to a host’s table

Functions

delete_content(pid, slug)

Deletes the content from a host.

get_content(pid, slug)

Gets html content from a host.

set_content(pid, slug, value)

Sets html content to a host with a slug.

set_content_fetcher(pid, f)

Sets the content fetcher. A fetcher is used to fetch content from the data source, such as a remote server.

start_link(opts \\ [])

Starts a host.

update_content(pid, slug)

Fetchs and sets the content from the storage to a host’s table.