Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Mustache and markdown escape testing

node v4.9.1
version: master
endpointsharetweet
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));
Loading…

no comments

    sign in to comment