google / google/playground-elements
Support a global TypeScript / JavaScript switch
Open
Needs Discussion
- Dominant language
- TypeScript
- Stars
- 648
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
We'd like to enable users to choose their preferred language for samples.
The most obvious way to do this would be to let samples include both .ts and .js versions of the same file, and just special case filtering out the other files. This would make it impossible to mix .ts and .js in a single sample though. We could also use another attribute for this, or nest files into another structure.
```html
...
...
```
Contributor guide
Assessment
This issue has not been assessed yet.