You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/concepts/router.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,6 @@ You can also capture sections using variations of `{}` within your `#[to = ""]`
42
42
43
43
For structs and enums with named fields, you must specify the field's name within the capture group like so: `{user_name}` or `{*:age}`.
44
44
45
-
The Switch trait works with capture groups that are more structured than just Strings. You can specify any type that implements `Switch`. So you can specify that the capture group is a `usize`, and if the captured section of the URL can't be converted to it, then the variant won't match.
45
+
The Switch trait works with capture groups that are more structured than just Strings. You can specify any type that implements `Switch`. So you can specify that the capture group is a `usize`, and if the captured section of the URL can't be converted to it, then the variant won't match.
Copy file name to clipboardExpand all lines: src/what-is-yew.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: A high level overview of the framework.
6
6
7
7
## What is Yew?
8
8
9
-
Yew is a frontend web framework, similar to React or Elm, that allows you to build websites with complex logic that runs in a web browser. Apps that use Yew are written in Rust, which compiles to Web Assembly \(**WASM**\), or plain JavaScript, in order to run in the browser.
9
+
Yew is a frontend web framework, similar to React or Elm, that allows you to build websites with complex logic that runs in a web browser. Apps that use Yew are written in Rust, which compiles to Web Assembly \(**WASM**\), or plain JavaScript, in order to run in the browser.
10
10
11
11
### Value Proposition
12
12
@@ -25,13 +25,10 @@ Yew is comprised of a few distinct parts that are used to create a working appli
25
25
26
26
#### Dependencies
27
27
28
-
Yew is built on top of `StdWeb`, a library that provides bindings between Rust and the Browser. Some features rely on another library called `web-sys`, which is auto-generated from web browser specification documents, and makes use of `wasm_bindgen`.
28
+
Yew is built on top of `StdWeb`, a library that provides bindings between Rust and the Browser. Some features rely on another library called `web-sys`, which is auto-generated from web browser specification documents, and makes use of `wasm_bindgen`.
29
29
30
30
#### Build environments
31
31
32
-
If your app is architected to only use StdWeb-based features, you can use the `cargo-web` build tool to build, test, and run your application. If you want to make use of advanced features, or just prefer the ecosystem, you can use various existing JS bundlers and their wasm\_bindgen based plugins to build your app. These include building using `wasm-pack` and bundling it yourself using `rollup`, or using `Webpack` or `Parcel` to manage your development and deployment tasks.
33
-
34
-
`cargo-web` supports compiling to JS via `Emscripten` or compiling to WASM using `rustc`, while using wasm\_bindgen based approaches only support compiling to WASM.
35
-
36
-
32
+
If your app is architected to only use StdWeb-based features, you can use the `cargo-web` build tool to build, test, and run your application. If you want to make use of advanced features, or just prefer the ecosystem, you can use various existing JS bundlers and their `wasm_bindgen` based plugins to build your app. These include building using `wasm-pack` and bundling it yourself using `rollup`, or using `Webpack` or `Parcel` to manage your development and deployment tasks.
37
33
34
+
`cargo-web` supports compiling to JS via `Emscripten` or compiling to WASM using `rustc`, while using `wasm_bindgen` based approaches only support compiling to WASM.
0 commit comments