xxxxxxxxxx
var mustache = require("mustache");
var md = require('markdown-it')({ typographer : true, breaks: true });
var markdownItAttrs = require('markdown-it-attrs');
md.use(markdownItAttrs);
// Change this object to change your values
var obj = {
ID: "Alice's Adventures in Wonderland \t what is this",
name : "some name",
width: 200
};
var template = '{{ID}} - {{name}}{width={{width}}}';
console.log(mustache.render(template, obj));
xxxxxxxxxx
sign in to comment