Template Strings as object keys?
Open
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Do template strings don't work as object keys?
```
grunt.initConfig({
foo: {thing: "thingo"},
bar: {"<%= foo.thing %>": true}
```
Something like this seems to not be replaced.
Contributor guide
Research direction
Start by reproducing the provided grunt.initConfig example with the template expression used as an object key. Trace how configuration values are processed and determine whether the key should be replaced; done means the example produces the expected substituted key or clearly reports the supported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100