Skip to content

Commit

Permalink
v0.8.0-beta.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechu10 committed Jun 26, 2022
1 parent 496eef3 commit ea67648
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/next/advanced/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To add routing to your Sycamore app, install the
[`sycamore-router`](https://crates.io/crates/sycamore-router) crate from crates.io.

```toml
sycamore-router = "0.8.0-beta.6"
sycamore-router = "0.8.0-beta.7"
```

### Compatibility with `sycamore`
Expand Down
2 changes: 1 addition & 1 deletion docs/next/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ You now need to add Sycamore to your new project's dependencies. Add the followi
`Cargo.toml` file in your project folder:

```toml
sycamore = "0.8.0-beta.6"
sycamore = "0.8.0-beta.7"
```

> **Note**: Sycamore is currently being developed at a rapid pace. To have access to the latest
Expand Down
2 changes: 1 addition & 1 deletion docs/versioned_docs/v0.8/advanced/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To add routing to your Sycamore app, install the
[`sycamore-router`](https://crates.io/crates/sycamore-router) crate from crates.io.

```toml
sycamore-router = "0.8.0-beta.6"
sycamore-router = "0.8.0-beta.7"
```

### Compatibility with `sycamore`
Expand Down
21 changes: 19 additions & 2 deletions docs/versioned_docs/v0.8/basics/view.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,24 @@ view! { cx,

Instead, when displaying user input, use interpolation syntax instead.

### Properties

Properties are set using the `prop:*` directive.

```rust
view! { cx,
input(type="checkbox", prop:indeterminate=true)
}
```

There are some properties that do not have an attribute, such as
`indeterminate` in HTML, which must be set using the `prop:*` directive.

There are a number of properties that have an associated attribute, such as
`value`, in these cases an attribute is deserialized to become the state of the
property. Consider using the `prop:*` for these cases when the value expected by
the element property is not a `string`.

### Events

Events are attached using the `on:*` directive.
Expand Down Expand Up @@ -152,8 +170,7 @@ view! { cx, }
## Builder syntax

For those who dislike macro DSLs, we also provide an ergonomic builder API for constructing views.
To begin, enable the `"builder"` feature flag on `sycamore` in your `Cargo.toml` file. Also make
sure to add the builder prelude as well as the main sycamore prelude to your source file.
Add the builder prelude as well as the main sycamore prelude to your source file.

```rust
use sycamore::builder::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion docs/versioned_docs/v0.8/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ You now need to add Sycamore to your new project's dependencies. Add the followi
`Cargo.toml` file in your project folder:

```toml
sycamore = "0.8.0-beta.6"
sycamore = "0.8.0-beta.7"
```

> **Note**: Sycamore is currently being developed at a rapid pace. To have access to the latest
Expand Down
4 changes: 2 additions & 2 deletions packages/sycamore-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ keywords = ["wasm", "gui", "reactive"]
license = "MIT"
readme = "../../README.md"
repository = "https://github.com/sycamore-rs/sycamore"
version = "0.8.0-beta.6"
version = "0.8.0-beta.7"

[dependencies]
ahash = "0.7.6"
sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.6" }
sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.7" }

[dev-dependencies]
sycamore = { path = "../sycamore" }
Expand Down
4 changes: 2 additions & 2 deletions packages/sycamore-futures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ keywords = ["wasm", "gui", "reactive"]
license = "MIT"
readme = "../../README.md"
repository = "https://github.com/sycamore-rs/sycamore"
version = "0.8.0-beta.6"
version = "0.8.0-beta.7"

[dependencies]
futures = "0.3.21"
sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.6" }
sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.7" }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4.29"
Expand Down
2 changes: 1 addition & 1 deletion packages/sycamore-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords = ["wasm", "gui", "reactive"]
license = "MIT"
readme = "../../README.md"
repository = "https://github.com/sycamore-rs/sycamore"
version = "0.8.0-beta.6"
version = "0.8.0-beta.7"

[lib]
proc-macro = true
Expand Down
2 changes: 1 addition & 1 deletion packages/sycamore-reactive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords = ["wasm", "gui", "reactive"]
license = "MIT"
readme = "../../README.md"
repository = "https://github.com/sycamore-rs/sycamore"
version = "0.8.0-beta.6"
version = "0.8.0-beta.7"

[dependencies]
ahash = "0.7.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/sycamore-router-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
name = "sycamore-router-macro"
readme = "../../README.md"
repository = "https://github.com/sycamore-rs/sycamore"
version = "0.8.0-beta.6"
version = "0.8.0-beta.7"

[lib]
proc-macro = true
Expand Down
6 changes: 3 additions & 3 deletions packages/sycamore-router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ license = "MIT"
name = "sycamore-router"
readme = "../../README.md"
repository = "https://github.com/sycamore-rs/sycamore"
version = "0.8.0-beta.6"
version = "0.8.0-beta.7"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
sycamore = { path = "../sycamore", version = "0.8.0-beta.6" }
sycamore-router-macro = { path = "../sycamore-router-macro", version = "0.8.0-beta.6" }
sycamore = { path = "../sycamore", version = "0.8.0-beta.7" }
sycamore-router-macro = { path = "../sycamore-router-macro", version = "0.8.0-beta.7" }
wasm-bindgen = "0.2.79"

[dependencies.web-sys]
Expand Down
6 changes: 3 additions & 3 deletions packages/sycamore-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ keywords = ["wasm", "gui", "reactive", "web"]
license = "MIT"
readme = "../../README.md"
repository = "https://github.com/sycamore-rs/sycamore"
version = "0.8.0-beta.6"
version = "0.8.0-beta.7"

[dependencies]
html-escape = "0.2.11"
indexmap = "1.8.1"
js-sys = "0.3.57"
once_cell = "1.10.0"
sycamore-core = { path = "../sycamore-core", version = "0.8.0-beta.6" }
sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.6" }
sycamore-core = { path = "../sycamore-core", version = "0.8.0-beta.7" }
sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.7" }
wasm-bindgen = "0.2.80"
web-sys = { version = "0.3.57", features = [
"console",
Expand Down
12 changes: 6 additions & 6 deletions packages/sycamore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords = ["wasm", "gui", "reactive"]
license = "MIT"
readme = "../../README.md"
repository = "https://github.com/sycamore-rs/sycamore"
version = "0.8.0-beta.6"
version = "0.8.0-beta.7"

[dependencies]
ahash = "0.7.6"
Expand All @@ -18,11 +18,11 @@ indexmap = { version = "1.8.0", features = ["std"] }
js-sys = { version = "0.3.56", optional = true }
once_cell = { version = "1.10.0", optional = true }
paste = "1.0.6"
sycamore-core = { path = "../sycamore-core", version = "0.8.0-beta.6" }
sycamore-futures = { path = "../sycamore-futures", version = "0.8.0-beta.6", optional = true }
sycamore-macro = { path = "../sycamore-macro", version = "0.8.0-beta.6" }
sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.6" }
sycamore-web = { path = "../sycamore-web", version = "0.8.0-beta.6", optional = true }
sycamore-core = { path = "../sycamore-core", version = "0.8.0-beta.7" }
sycamore-futures = { path = "../sycamore-futures", version = "0.8.0-beta.7", optional = true }
sycamore-macro = { path = "../sycamore-macro", version = "0.8.0-beta.7" }
sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.7" }
sycamore-web = { path = "../sycamore-web", version = "0.8.0-beta.7", optional = true }
wasm-bindgen = { version = "0.2.79", optional = true }
wasm-bindgen-futures = { version = "0.4.29", optional = true }

Expand Down
3 changes: 2 additions & 1 deletion website/src/versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ enum VersionedDocsLink {
const VERSIONS: &[(&str, VersionedDocsLink)] = &[
("Next", VersionedDocsLink::Next),
// v0.8.0
("v0.8.0-beta.6", VersionedDocsLink::Some("v0.8")),
("v0.8.0-beta.7", VersionedDocsLink::Some("v0.8")),
("v0.8.0-beta.6", VersionedDocsLink::None),
("v0.8.0-beta.5", VersionedDocsLink::None),
("v0.8.0-beta.4", VersionedDocsLink::None),
("v0.8.0-beta.3", VersionedDocsLink::None),
Expand Down

0 comments on commit ea67648

Please sign in to comment.