Closed mjstahl closed 5 years ago
I think this is the expected behavior. My understanding is: stache is looking for helloWorld
and it finds it (the helper is defined). The helper won’t be called (I think that was removed as of 4.x) and the truthy part will be rendered because helloWorld
is defined.
I’m closing this issue because I think it’s the expected behavior (see my comment above).
If I’m wrong, please feel free to reopen this. 😊
TL;DR https://codepen.io/kphillips86/pen/XyxYgo
Assuming a helper:
And a stache file that uses that helper:
helloWorld
will not be executed, or is there a warning on the console that the helper should be called likehelloWorld()
.Also, oddly enough the "truthy" section of the condition is rendered.