adammark/Markup.js

includes can't include nested objects

posativ opened this issue · 0 comments

Hi,

it would be awesome to have nested objects in includes (e.g. namespaces). The current implementation doesn't recognize them:

Mark.includes = {
  a: "works",
  b: {
    does: "not"
  }
}

console.log(Mark.up("{{a}} and {{b.does}}"))
// works and ???