Comments (3)
There's no current plan for switch statements in attributes. If there's popular support for it, I wouldn't mind adding it though.
Thanks for your work on the syntax highlighting. It looks great.
from templ.
Opened a PR: templ-go/templ-vscode#33.
from templ.
While putting this together, I also quickly tested a switch statement within HTML attributes and it seems that the LSP does not currently support that. Are there any plans to support HTML attribute switch statements? If so, I would be more than happy to add syntax highlighting support for it to the VSCode extension.
from templ.
Related Issues (20)
- Proposal: Allow spreading List of `templ.Components`, similar to `{ children ... }` HOT 1
- css expression: found unexpected parameters HOT 2
- generator: Add nonce support for style tags
- Abandoned change to not modify files where fmt makes no changes HOT 3
- Proposal: Load file as templ HOT 6
- Help with intercepting middleware, and writing responses HOT 4
- Proposal: Change URL's signature to match [S]Printf HOT 3
- Script application/ld+json HOT 4
- lsp error when ı reload or open templ file HOT 8
- [v0.2.717] error: column is beyond end of line HOT 23
- Connection to server got closed. Server will not be restarted. (source: templ-vscode) HOT 4
- proposal: Cache-bust Static Assets HOT 4
- I am getting error with templ-vscode extension HOT 7
- Error Starting VCS Extension HOT 3
- parser: Calling methods on a new line
- Explanation HOT 1
- Server initialization failed. HOT 5
- Investigate issue raised in vscode-go HOT 1
- LSP: Autocomplete seems broken HOT 2
- VS Code: Request textDocument/codeAction failed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templ.