Sitemaps.Location (Sitemaps v0.1.2)

Copy Markdown View Source

Location is a facility for giving the path and filename for the sitemap file and the index file.

Summary

Functions

Get the directory, the files_path from the configuration and expand it to get the absolute path.

Get the filename given the name.

Get the full path for the file passed as parameter.

Get a new filename.

Get the URL for the specific sitemap or index files. The parameter expects or :file or :index_file or a string with the name of the file.

Functions

directory()

Get the directory, the files_path from the configuration and expand it to get the absolute path.

filename(name)

Get the filename given the name.

path(name)

Get the full path for the file passed as parameter.

reserve_name(name)

Get a new filename.

url(name)

Get the URL for the specific sitemap or index files. The parameter expects or :file or :index_file or a string with the name of the file.