I'm attempting a very simple conditional expression in a ractive template. See the jsfiddle - here's my data:
{name: 'steve'}
Here's my template:
value of name is: {{ name }}
{{#if (name === 'steve')}}this should work{{/if}}
Which renders:
value of name is: steve
(nothing else)
Why is the conditional not working? How can I make a section that only applies if 'name' meets a particular string value?
The fiddle is using a very old version of Ractive - 0.3.7. If you use the latest stable version instead (0.6.1) it works as expected. I can't include a link to the fiddle because of SO's draconian new rules, but you can find RactiveJS Latest at the bottom of the Frameworks and Extensions dropdown on the fiddle