feat: support WRN imports and dynamic public shell
This commit is contained in:
@@ -27,6 +27,19 @@ component UserCard {
|
||||
|
||||
The extension shows declared prop types and reports missing required props and incompatible values. Typed prop and state expressions passed into nested components retain their declared type.
|
||||
|
||||
Top-level imports are supported before `page`, `component`, or `layout`. Imported
|
||||
helpers can be used in server-rendered prop expressions:
|
||||
|
||||
```wrn
|
||||
import { appUrl } from "@wrnexus/helpers";
|
||||
|
||||
layout PublicLayout {
|
||||
view {
|
||||
<PublicHeader signInHref="{appUrl('sso', '/sign-in')}" />
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
Search for **WRNexus Language Support** in the VS Code Extensions view or run:
|
||||
|
||||
Reference in New Issue
Block a user