Micro View Language Support
This extension provides syntax highlighting and language support for Micro View templates with .micro extension.
Features
- Syntax highlighting for
use-view , use-if , use-each , etc.
- Support for interpolation (
{{ variable }} )
- Boolean (
true , false , null ) and string literals
- Auto-completion and code snippets for common patterns
Installation
- Open VS Code.
- Go to the Extensions view (
Ctrl+Shift+X ).
- Search for Micro View Language.
- Install the extension.
Usage
- Create a
.micro file.
- Start writing your templates with
use-view , use-if , use-each , and more.
Example:
use-view {
template: `
<use-if condition="user.isLogin">
<p>Welcome {{ user.name }}</p>
</use-if>
`
}
| |