Markup.js icon indicating copy to clipboard operation
Markup.js copied to clipboard

includes can't include nested objects

Open posativ opened this issue 10 years ago • 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 ??? 

posativ avatar Oct 01 '13 09:10 posativ