Sitemaps.Namer (Sitemaps v0.1.2)

Copy Markdown View Source

Names generated for the sitemap files.

Summary

Functions

Returns a specification to start this module under a supervisor.

Generate a new file.

Goes to the previous file. It generates an error if it's not started, see start?/1.

Restart the naming for the sitemap and index files.

Returns true if it's still in the first (0) file, otherwise false.

Get the name of the filename given the :file, :index_file, or a string.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

decr_state(key, number)

decr_state(name, key, number)

incr_state(key, number)

incr_state(name, key, number)

next(name)

Generate a new file.

previous!(name)

Goes to the previous file. It generates an error if it's not started, see start?/1.

reset(name)

Restart the naming for the sitemap and index files.

start?(name)

Returns true if it's still in the first (0) file, otherwise false.

start_link(opts)

start_link(name, opts)

to_string(name)

Get the name of the filename given the :file, :index_file, or a string.