Update To Latest Version
This commit is contained in:
parent
2365789959
commit
fe4694d687
9 changed files with 24 additions and 28 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
|
@ -80,7 +80,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "integration-tests"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
dependencies = [
|
||||
"pretty_assertions",
|
||||
"sailfish",
|
||||
|
|
@ -165,7 +165,7 @@ checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
|
|||
|
||||
[[package]]
|
||||
name = "sailfish"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
dependencies = [
|
||||
"itoap",
|
||||
"ryu",
|
||||
|
|
@ -177,7 +177,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sailfish-compiler"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
dependencies = [
|
||||
"filetime",
|
||||
"home",
|
||||
|
|
@ -192,7 +192,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sailfish-macros"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"sailfish-compiler",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,5 @@ members = [
|
|||
"sailfish-tests/integration-tests"
|
||||
]
|
||||
exclude = [
|
||||
"sailfish-tests/fuzzing-tests",
|
||||
"examples"
|
||||
]
|
||||
|
|
|
|||
27
README.md
27
README.md
|
|
@ -4,11 +4,7 @@
|
|||
|
||||
Simple, small, and extremely fast template engine for Rust
|
||||
|
||||
[](https://github.com/rust-sailfish/sailfish/actions?query=workflow%3ATests)
|
||||
[](https://crates.io/crates/sailfish)
|
||||
[](https://deps.rs/repo/github/rust-sailfish/sailfish)
|
||||
[](https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html)
|
||||
[](https://github.com/rust-sailfish/sailfish/blob/master/LICENSE)
|
||||

|
||||
|
||||
[User Guide](https://rust-sailfish.github.io/sailfish/) | [API Docs](https://docs.rs/sailfish) | [Examples](./examples)
|
||||
|
||||
|
|
@ -31,13 +27,13 @@ Dependencies:
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
sailfish = "0.9.0-beta"
|
||||
sailfish = "0.9.0"
|
||||
```
|
||||
|
||||
You can choose to use `TemplateSimple` to access fields directly:
|
||||
|
||||
> Template file (templates/hello.stpl):
|
||||
>
|
||||
>
|
||||
> ```erb
|
||||
> <html>
|
||||
> <body>
|
||||
|
|
@ -47,9 +43,9 @@ You can choose to use `TemplateSimple` to access fields directly:
|
|||
> </body>
|
||||
> </html>
|
||||
> ```
|
||||
>
|
||||
>
|
||||
> Code:
|
||||
>
|
||||
>
|
||||
> ```rust
|
||||
> use sailfish::TemplateSimple;
|
||||
>
|
||||
|
|
@ -70,7 +66,7 @@ You can choose to use `TemplateSimple` to access fields directly:
|
|||
Or use the more powerful `Template/TemplateMut/TemplateOnce`:
|
||||
|
||||
> Template file (templates/hello.stpl):
|
||||
>
|
||||
>
|
||||
> ```erb
|
||||
> <html>
|
||||
> <body>
|
||||
|
|
@ -81,9 +77,9 @@ Or use the more powerful `Template/TemplateMut/TemplateOnce`:
|
|||
> </body>
|
||||
> </html>
|
||||
> ```
|
||||
>
|
||||
>
|
||||
> Code:
|
||||
>
|
||||
>
|
||||
> ```rust
|
||||
> use sailfish::Template;
|
||||
>
|
||||
|
|
@ -92,7 +88,7 @@ Or use the more powerful `Template/TemplateMut/TemplateOnce`:
|
|||
> struct HelloTemplate {
|
||||
> messages: Vec<String>
|
||||
> }
|
||||
>
|
||||
>
|
||||
> impl HelloTemplate {
|
||||
> fn say_hello(&self) -> String {
|
||||
> String::from("Hello!")
|
||||
|
|
@ -138,5 +134,6 @@ Copyright © 2020 [Ryohei Machida](https://github.com/Kogia-sima).
|
|||
|
||||
This project is [MIT](https://github.com/rust-sailfish/sailfish/blob/master/LICENSE) licensed.
|
||||
|
||||
***
|
||||
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_
|
||||
---
|
||||
|
||||
*This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)*
|
||||
|
|
@ -4,7 +4,7 @@ In order to use sailfish templates, you have add two dependencies in your `Cargo
|
|||
|
||||
``` toml
|
||||
[dependencies]
|
||||
sailfish = "0.9.0-beta"
|
||||
sailfish = "0.9.0"
|
||||
```
|
||||
|
||||
## Feature Flags
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "sailfish-examples"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
authors = ["Ryohei Machida <orcinus4627@gmail.com>"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "sailfish-compiler"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
authors = ["Ryohei Machida <orcinus4627@gmail.com>"]
|
||||
description = "Simple, small, and extremely fast template engine for Rust"
|
||||
homepage = "https://github.com/rust-sailfish/sailfish"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "sailfish-macros"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
authors = ["Ryohei Machida <orcinus4627@gmail.com>"]
|
||||
description = "Simple, small, and extremely fast template engine for Rust"
|
||||
homepage = "https://github.com/rust-sailfish/sailfish"
|
||||
|
|
@ -30,6 +30,6 @@ proc-macro2 = "1.0.56"
|
|||
|
||||
[dependencies.sailfish-compiler]
|
||||
path = "../sailfish-compiler"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
default-features = false
|
||||
features = ["procmacro"]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "integration-tests"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
authors = ["Ryohei Machida <orcinus4627@gmail.com>"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "sailfish"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
authors = ["Ryohei Machida <orcinus4627@gmail.com>"]
|
||||
description = "Simple, small, and extremely fast template engine for Rust"
|
||||
homepage = "https://github.com/rust-sailfish/sailfish"
|
||||
|
|
@ -31,7 +31,7 @@ serde_json = { version = "1.0.95", optional = true }
|
|||
|
||||
[dependencies.sailfish-macros]
|
||||
path = "../sailfish-macros"
|
||||
version = "0.9.0-beta"
|
||||
version = "0.9.0"
|
||||
default-features = false
|
||||
optional = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue