yesod-sitemap-1.6.0: Generate XML sitemaps.

Safe HaskellNone
LanguageHaskell98

Yesod.Sitemap

Description

Generates XML sitemap files.

See http://www.sitemaps.org/.

Synopsis

Documentation

sitemap :: ConduitT () (SitemapUrl (Route site)) (HandlerFor site) () -> HandlerFor site TypedContent Source #

Serve a stream of SitemapUrls as a sitemap.

Since 1.2.0

sitemapList :: [SitemapUrl (Route site)] -> HandlerFor site TypedContent Source #

Convenience wrapper for sitemap for the case when the input is an in-memory list.

Since 1.2.0

sitemapConduit :: Monad m => (a -> Text) -> ConduitT (SitemapUrl a) Event m () Source #

Convert a stream of SitemapUrls to XML Events using the given URL renderer.

This function is fully general for usage outside of Yesod.

Since 1.2.0

robots Source #

Arguments

:: MonadHandler m 
=> Route (HandlerSite m)

sitemap url

-> m Text 

A basic robots file which just lists the "Sitemap: " line.