The string format regex in inmanta.parser.plyInmantaParser accepts only variables. As a result {{dct['a']}} does not match. This string formatting is not supported at the moment, but intuitively you would expect this attempt to either work or raise an error. Instead, it is not recognized as an attempted string format and it's just interpreted as the literal string r"{{dct['a']}}". This is undesirable. There are two approaches to resolve this:
The string format regex in
inmanta.parser.plyInmantaParser
accepts only variables. As a result{{dct['a']}}
does not match. This string formatting is not supported at the moment, but intuitively you would expect this attempt to either work or raise an error. Instead, it is not recognized as an attempted string format and it's just interpreted as the literal stringr"{{dct['a']}}"
. This is undesirable. There are two approaches to resolve this:Support
Example model
prints
hello {{dct['a']}}