Sitemaps.Builders.IndexFile (Sitemaps v0.1.2)

Copy Markdown View Source

Creates a index file for the number of files containing the sitemaps.

Summary

Functions

Add the file in use in Location to the index_file. The options are passed to Sitemaps.Builders.IndexUrl.to_xml/2 as second parameter, you can check there which options can be used. By default, no options are needed.

Add a link directly through the index file. See add/1.

Returns a specification to start this module under a supervisor.

Write the index file.

Functions

add(options \\ [])

Add the file in use in Location to the index_file. The options are passed to Sitemaps.Builders.IndexUrl.to_xml/2 as second parameter, you can check there which options can be used. By default, no options are needed.

add(link, options)

Add a link directly through the index file. See add/1.

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)

start_link(opts)

start_link(name, opts)

write()

Write the index file.