samtecspg/articulate

Shorthand for handlebars expressions

dakavisa opened this issue · 0 comments

I think we should also think of a short hand for the handlebars stuff. categories.octopart.parameters.octopartIndexName is pretty intense. I am wondering if we couldn't attempt to resolve by just the first few characters. so the above would turn into c.o.p.octopartIndexName and in the case of conflicts (multiple things start with c) it would error, but then you could just addd more characters. So let's say you had both octopart and occupy categories. You could access those by c.oct.p.octopartIndexName or c.occ.p.occupyIndexName