class Sitemapper::Builder

Direct Known Subclasses

Defined in:

sitemapper/builder.cr

Constant Summary

XMLNS_IMAGE_SCHEMA = "http://www.google.com/schemas/sitemap-image/1.1"
XMLNS_SCHEMA = "http://www.sitemaps.org/schemas/sitemap/0.9"
XMLNS_VIDEO_SCHEMA = "http://www.google.com/schemas/sitemap-video/1.1"
XMLNS_XSI = "http://www.w3.org/2001/XMLSchema-instance"

See: https://sitemaps.org/protocol.html#validating

XSI_INDEX_SCHEMA_LOCATION = "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"
XSI_SCHEMA_LOCATION = "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, max_urls : Int32, use_index : Bool) #

[View source]

Instance Method Detail

def add(path, **kwargs) : self #

[View source]
def generate : Array(Hash(String, String)) #

[View source]
def generate_index : Hash(String, String) #

[View source]
def paginator : Paginator #

[View source]