You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As further evidence that this shouldn't be the expected behavior in Chevron, note the inconsistency otherwise:
>>>chevron.render('{{#title}}{{title}}{{/title}}', {'title': 'bob'})
'<built-in method title of str object at 0x7efd4d6bfe70>'>>>chevron.render('{{#foo}}{{foo}}{{/foo}}', {'foo': 'bob'})
'bob'
If the mustache key mirrors a built-in
str
method (e.g.,title
), chevron doesn't interpolate the conditional value:Is this expected or a bug?
Currently I'm using a lambda workaround, but not sure if I'm missing something obvious:
(chevron version 0.14.0)
The text was updated successfully, but these errors were encountered: