@ helper's don't work
See original GitHub issueIs this nested structure supposed to work?
feed.dust
{#activities}
{@select key=category}
{@eq value="event"}{>"views/snapshot/event"/}{/eq}
{/select}
{/activities}
event.dust
<div class="row activity {name} {category} reset-lineheight">
<div class="col-xs-1">
<span class="svg {icon_class}"></span>
</div>
<div class="col-xs-11">
<header>
<i class="text-muted text-note">{@gt key=counter value="1" type="number"}{strings.last_time} {/gt}{formatted_datetime}</i>
</header>
</div>
</div>
Inside the partial event
none of the @ helpers function correctly. If I output {counter} or do a context dump the correct value appears. In case it was a type issue I added a string property with a static value and did an @eq test on it which also failed to produce output. {:else} blocks are also not displayed it’s as if the entire condition is stripped somehow.
Is this a bug? If I change the @select in the parent view to @eq checks the @ helpers inside event
do function as you’d expect them to. The reason it’s an @select is because there are about 10 different views depending on the value of category.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Rails Devise methods & helpers don't work - Stack Overflow
I have inherited an application built with Rails (v. 4.2.0) + AngularJS. Most of it works reasonably well, but I have hit a...
Read more >Helpers dont work? · Issue #363 · vuelidate/vuelidate - GitHub
You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/ ......
Read more >Helper doesn't work with Controllers - Laracasts
Helper doesn't work with Controllers. I've created myself a helper class called Perm that is meant to return user of current session (I...
Read more >[SOLVED] Helpers not working the fields (PS4)
Everytime I hit circle it says "Helper _ Has completed their task" the problem is that the field still has crop that's ready...
Read more >Author Tag Helpers in ASP.NET Core | Microsoft Learn
Create a new ASP.NET Core project called AuthoringTagHelpers. You won't need authentication for this project. Create a folder to hold the Tag ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have similar issue with Node.js 8.8.1 version
{@eq}
is not executing at all when I switch to Node.js 6.10.2 … things just work fine.We are facing the same issue as mentioned by @hegdeashwin @monsterlane what is the node version you are using? Also, are you using dust on server-side templating?