Just playing around with Dwarf Fortress's legends export in Go.
The easiest way to get started is to download the latest release binary for your platform here:
https://github.com/schmichael/legendarygopher/releases
Then run it and pass in your legends xml:
legendarygopher some-legends-dump.xml
Once the xml is parsed open http://localhost:6060/ in a browser.
Need an XML file? Download a gzipped sample
Turning off the web interface dumps raw text:
legendarygopher -http="" some-legends-dump.xml
Everything, including the package/repo name/location is subject to change without warning. If you want to use this code your best bet is probably just to copy and paste it into your own projet.
Go nuts!
If you change templates you must install go-bindata and run go generate:
go get -u github.com/jteeuwen/go-bindata/...
go generate
go build
./legendarygopher -http=:6060 some-legends-dump.xml
Pull requests welcome!
Check out https://github.com/schmichael/legendarygopher/issues for the roadmap.