0.0.1 • Published 8 years ago

sitemap-renderer v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Sitemap Renderer

Renders a static site with support for a template file and an accurate sitemap.xml.

This can be used to pre-render an entire static site.

Usage

const sitemapRenderer = require('sitemap-renderer')

sitemapRenderer.renderSite({
  hostname: 'https://www.example.com'
  pages: [{ uri: '/home', file: '/path/to/source/file' }],
  template: 'path/to/template.dot',
  output: 'path/to/output/folder',
  render(path) {
    return Promise.resolve('html string')
  },
})