-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.inject() in template with {{each}} is ignored #24
Comments
cyppher
changed the title
Inject in template with {{each}} is ignored
.inject() in template with {{each}} is ignored
Jul 20, 2018
bump the lack of injectable code within an |
Is this issue fixed yet? |
@smtrd3 not that I'm aware of. |
I noticed that all the injected objects can be accessed as something like "{{ $root.moment() }}" even from inside #each block. Don't know whether it is correct approach or not. |
Is this issue fixed yet? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
When calling
transformWith
with a template that loops overitems
(with{{#each items}}
) the injected function is ignored and outputted as String.The issue occurs with this (partial) code:
data:
template:
"{{#each items}}": { "status": "{{_.upperCase(this.status)}}", }
ST code
result
"status": "_.upperCase(this.status)"
Expected result
"status": "CONFIRMED"
When I look into test code, I only see a simple test case, this generic case is not covered.
Can you please take a look into this issue / point me in the right direction for a fix / pull request?
Thanks!
The text was updated successfully, but these errors were encountered: