mix site_maps.gen (site_maps v0.1.0)

Copy Markdown View Source

Generates a starter module that uses SiteMaps, with a static process and a dynamic process sharded by month, written through the SiteMaps.Adapters.FileSystem adapter.

$ mix site_maps.gen MyApp.Sitemaps
$ mix site_maps.gen MyApp.Sitemaps --multi

The module is written to lib/my_app/sitemaps.ex. By default it reads its url from the application environment and the task prints the configuration to add; with --multi the url and adapter come from config/1.

Options