Associative arrays
erochaamorim opened this issue · 2 comments
erochaamorim commented
According to the docs, estemplate does support regular array templating. But what if I want to template an associative array? (object, or dictionary)
Does it support something like:
var a = {%= elements %};
If it doesn't, would it be too hard for someone (e.g.: me) to pick up a fork and implement it?
RReverser commented
Unfortunately, it doesn't support them directly, but it's relatively easy to replace this with <%= { type: 'ObjectExpression', properties: elements } %>
.
erochaamorim commented
Thanks for the reply!