xmlb template plugin for Wintersmith

npm install wintersmith-xmlb
8 downloads in the last month


A template plugin for the Wintersmith static site generator that lets one to write xmlb templates to generate XML.

The xmlb template library uses the xmlbuilder-js library to generate XML.

My need for outputting XML was to generate a sitemap file. It could also be used to generate RSS and Atom feeds.

Here's an example of a snippet of a sitemap.xmlb template:

//set up pages array

var root = xml.begin('urlset', {version: '1.0', encoding: 'UTF-8'})
              .att('xmlns', '')

          .text(locals.url + item.url)

Referenced projects

A special thanks to the wintersmith-ejs project by Stephen Allred, which I used as the template for this project.

npm loves you