Skip to content

Commit dd66a81

Browse files
committed
docs(examples): update readme
1 parent 0ac080c commit dd66a81

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

examples/project-structure/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ into a project structure that can be used as a starting guide for more complex W
1818
└── v.mod
1919
```
2020

21+
## Run
22+
2123
From the examples directory
2224

2325
```sh
26+
# ~/<path>/webview/examples/project-structure
2427
v run .
2528
```
2629

2730
Or from webview src directory
2831

2932
```sh
33+
# ~/<path>/webview
3034
v run examples/project-structure/
3135
```
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
# V-JS-Interop Example
22

3-
An example with the basic code architecture of an application.
4-
It shows how to call V from JS and vice versa.
3+
A simple example demonstrating interaction between JS and V.
4+
It uses a single-file structure where the `index.html` file contains the UI code, which is connected
5+
to the `main.v` V application.
6+
7+
Refer to the sibling example, `project-structure`, which organizes this example into a project
8+
structure that can serve as a starting guide for more complex Webview projects.
59

610
## Run
711

8-
From the examples directory
12+
From this examples directory
913

1014
```sh
15+
# ~/<path>webview/examples/v-js-interop-app
1116
v run .
1217
```
1318

1419
Or from webview src directory
1520

1621
```sh
22+
# ~/<path>/webview
1723
v run examples/v-js-interop/
1824
```

0 commit comments

Comments
 (0)