Safe Haskell | None |
---|---|
Language | Haskell98 |
Generates XML sitemap files.
- sitemap :: ConduitT () (SitemapUrl (Route site)) (HandlerFor site) () -> HandlerFor site TypedContent
- sitemapList :: [SitemapUrl (Route site)] -> HandlerFor site TypedContent
- sitemapConduit :: Monad m => (a -> Text) -> ConduitT (SitemapUrl a) Event m ()
- robots :: MonadHandler m => Route (HandlerSite m) -> m Text
- data SitemapUrl url = SitemapUrl {}
- data SitemapChangeFreq
Documentation
sitemap :: ConduitT () (SitemapUrl (Route site)) (HandlerFor site) () -> HandlerFor site TypedContent Source #
Serve a stream of SitemapUrl
s 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 SitemapUrl
s to XML Event
s using the given URL
renderer.
This function is fully general for usage outside of Yesod.
Since 1.2.0
:: MonadHandler m | |
=> Route (HandlerSite m) | sitemap url |
-> m Text |
A basic robots file which just lists the "Sitemap: " line.
data SitemapUrl url Source #