On Sat, Aug 13, 2016 at 7:13 PM, Adrian Salceanu <adrian.salce...@gmail.com> wrote:
> Thanks > > It's for a templating engine. The user creates the document (a string) > which contains interpolated variables placeholders and markup. When the > template is rendered, the placeholders must be replaced with the > corresponding values from the dict. > > The lines in the template are eval-ed and so Julia will look for the > variables in the scope. So the vars should be already defined. > You should explicitly look up those variables in the dict instead. > > Yes, ultimately I can force the user to use a dict (or rather a function > for a bit of semantic sugar) - which is preferable from a performance > perspective, but less pretty end error prone from the user perspective.