question-mark
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.

Subexpressions don't work as expected

See original GitHub issue

This is a follow up on #55 but might not directly be related.

Using sub-expressions like {{encode (url)}} (as in https://github.com/halfdan/hbs-weird/) where the url helper returns a URL and encode executes encodeURIComponent the expression is replaced by only the result of the url helper. Using {{encode "http://foo.bar/?baz=muh"}} on its own seems to work just fine.

Example case in https://github.com/halfdan/hbs-weird/

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nknappcommented, Nov 15, 2015

@mgutz have you had any chance to look at promised-handlebars yet?

0reactions
jtwebmancommented, Dec 2, 2018

This is fixed now with my latest merge.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sed subexpressions not working as expected - Stack Overflow
2 Answers 2 ... That's because the regex doesn't match. Since you're not surrounding your sed expression in quotes, you have to double-escape ......
Read more >
Do subExpressions work as I think they do - DHIS2 Community
Hi all, We have a dataset called “MDA LF” and it has a data element called “Endemicity” which can accept integer values from...
Read more >
[expressions] subexpressions can't access variables of main ...
there is a bug in expressions preventing us to access main expressions variables in a subexpression this will not work as expected: ....
Read more >
Handlebars subexpression in framework7 seems not to be ...
It seems that handlebars subexpression in framework7 are not working, and throw this error… handlebars expressions works just fine but a ...
Read more >
V502. The '?:' operator may not work as expected. The '?:'
The analyzer found a code fragment that most probably has a logic error. The program text has an expression that contains the ternary...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found