AshSitemap.Helpers (ash_sitemap v1.0.1)
View SourceUseful helper functions
Summary
Functions
Renders a progress bar
Gets the rootpath in relation to the current module
Returns the schema for the sitemap.
Returns the number of sitemap files to generate
Xml footer for the sitemap.
Xml header for the sitemap.
Xml index footer for the sitemap.
Xml index header for the sitemap.
Functions
Parameters
number - any integer/float divisor - what to divide by
Returns
{quotient, remainder}
Example
iex(6)> Data.divmod(12, 2) {6, 0} iex(7)> Data.divmod(12, 3) {4, 0} iex(8)> Data.divmod(12, 4) {3, 0} iex(9)> Data.divmod(12, 4.5) {2, 3.0}
Renders a progress bar
Gets the rootpath in relation to the current module
Returns the schema for the sitemap.
Returns the number of sitemap files to generate
Xml header for the sitemap.
Xml index header for the sitemap.