Skip to content

Instantly share code, notes, and snippets.

@benoror
Created January 23, 2015 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benoror/85e639b69e8077c05b6a to your computer and use it in GitHub Desktop.
Save benoror/85e639b69e8077c05b6a to your computer and use it in GitHub Desktop.
node-pate example
var pate = require('node-pate');
pate.parse('{{ count/@type }} count: {{ count }}', '<data><row><count type="Bretzel">42</count></row></data>', '/*/*', function (err, data) {
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment