Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@ helper's don't work

See original GitHub issue

Is this nested structure supposed to work?


	{@select key=category}
		{@eq value="event"}{>"views/snapshot/event"/}{/eq}


<div class="row activity {name} {category} reset-lineheight">
	<div class="col-xs-1">
		<span class="svg {icon_class}"></span>

	<div class="col-xs-11">
			<i class="text-muted text-note">{@gt key=counter value="1" type="number"}{strings.last_time} {/gt}{formatted_datetime}</i>

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:open
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

hegdeashwincommented, Dec 6, 2017

I have similar issue with Node.js 8.8.1 version

    <div>Hello World</div>
    {@eq key="true" value="true"}
        <div>Hello 1</div>
        <div>Hello 2</div>

{@eq} is not executing at all when I switch to Node.js 6.10.2 … things just work fine.

snehasis419commented, Dec 7, 2017

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?

Read more comments on GitHub >

github_iconTop 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 ......
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found