samtecspg / articulate

A platform for building conversational interfaces with intelligent agents (chatbots)
http://spg.ai/projects/articulate/
Apache License 2.0
598 stars 158 forks source link

Shorthand for handlebars expressions #1070

Open dakavisa opened 4 years ago

dakavisa commented 4 years ago

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