Support for conditional attributes?
Open
- Dominant language
- JavaScript
- Stars
- 688
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
```js
html`
`
```
It can be useful if we get a declarative HTML way to conditionally define an attribute. Thoughts?
cc @sidvishnoi
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files, tests, or entry points. Start by locating nanohtml's template and attribute-handling code, then review existing tests for interpolated attributes. Before implementing anything, clarify the conditional-attribute syntax and expected behavior, and define tests that show when the attribute is present or omitted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100