doc: Fix typo
This commit is contained in:
parent
ace4d1710c
commit
f113734981
|
@ -15,7 +15,7 @@ Simple, small, and extremely fast template engine for Rust
|
||||||
## ✨ Features
|
## ✨ Features
|
||||||
|
|
||||||
- Simple and intuitive syntax inspired by [EJS](https://ejs.co/)
|
- Simple and intuitive syntax inspired by [EJS](https://ejs.co/)
|
||||||
- Builtin filters
|
- Built-in filters
|
||||||
- Relatively small number of dependencies (<15 crates in total)
|
- Relatively small number of dependencies (<15 crates in total)
|
||||||
- Extremely fast (See [benchmarks](https://github.com/djc/template-benchmarks-rs))
|
- Extremely fast (See [benchmarks](https://github.com/djc/template-benchmarks-rs))
|
||||||
- Better error message
|
- Better error message
|
||||||
|
@ -74,7 +74,7 @@ You can find more examples in [examples](./examples) directory.
|
||||||
|
|
||||||
🇯🇵 **Ryohei Machida**
|
🇯🇵 **Ryohei Machida**
|
||||||
|
|
||||||
* Github: [@Kogia-sima](https://github.com/Kogia-sima)
|
* GitHub: [@Kogia-sima](https://github.com/Kogia-sima)
|
||||||
|
|
||||||
## 🤝 Contributing
|
## 🤝 Contributing
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
benchmark programs were removed in favor of https://github.com/djc/template-benchmarks-rs
|
benchmark programs were removed in favour of https://github.com/djc/template-benchmarks-rs
|
||||||
|
|
|
@ -10,8 +10,8 @@ Currently the documentation is uncompleted. If you want to improve our documenta
|
||||||
|
|
||||||
There are many libraries for template rendering in Rust. Among those libraries, sailfish aims at **rapid development** and **rapid rendering**. Sailfish has many features that other libraries might not support.
|
There are many libraries for template rendering in Rust. Among those libraries, sailfish aims at **rapid development** and **rapid rendering**. Sailfish has many features that other libraries might not support.
|
||||||
|
|
||||||
- Write a Rust code directly inside templates, supporting many Rust syntax (struct definision, closure, macro invocation, etc.)
|
- Write a Rust code directly inside templates, supporting many Rust syntax (struct definition, closure, macro invocation, etc.)
|
||||||
- Builtin filters
|
- Built-in filters
|
||||||
- Relatively small number of dependencies (<15 crates in total)
|
- Relatively small number of dependencies (<15 crates in total)
|
||||||
- Extremely fast (See [benchmarks](https://github.com/djc/template-benchmarks-rs))
|
- Extremely fast (See [benchmarks](https://github.com/djc/template-benchmarks-rs))
|
||||||
- Better error message
|
- Better error message
|
||||||
|
@ -21,7 +21,7 @@ There are many libraries for template rendering in Rust. Among those libraries,
|
||||||
|
|
||||||
## Upcoming features
|
## Upcoming features
|
||||||
|
|
||||||
Since sailfish is on early stage of development, there are many upcoming features that is not supported yet. You can find many [RFC](https://github.com/Kogia-sima/sailfish/issues?q=is%3Aissue+is%3Aopen+label%3A%22Type%3A+RFC%22)s in my repository. These RFCs include:
|
Since sailfish is on early stage of development, there are many upcoming features that is not supported yet. You can find many [RFC](https://github.com/Kogia-sima/sailfish/issues?q=is%3Aissue+is%3Aopen+label%3A%22Type%3A+RFC%22)s in my repository. These RFC include:
|
||||||
|
|
||||||
- `Template` trait (which does not consume itself)
|
- `Template` trait (which does not consume itself)
|
||||||
- Template inheritance (block, partials, etc.)
|
- Template inheritance (block, partials, etc.)
|
||||||
|
|
|
@ -15,7 +15,7 @@ message: "foo\nbar"
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! Note
|
!!! Note
|
||||||
Since `dbg` filter accepts '<T: std::fmt::Debug>' types, that type isn't required to implement [`Render`](https://docs.rs/sailfish/latest/sailfish/runtime/trait.Render.html) trait. That means you can pass the type which doen't implement `Render` trait.
|
Since `dbg` filter accepts '<T: std::fmt::Debug>' types, that type isn't required to implement [`Render`](https://docs.rs/sailfish/latest/sailfish/runtime/trait.Render.html) trait. That means you can pass the type which doesn't implement `Render` trait.
|
||||||
|
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|
|
@ -63,7 +63,7 @@ AllocVtable is passed to template function, and then VBuffer is constructed insi
|
||||||
|
|
||||||
VBuffer should always use AllocVTable to allocate/reallocate a new memory. That cannot achieve with `std::string::String` struct only. We must re-implement the `RawVec` struct.
|
VBuffer should always use AllocVTable to allocate/reallocate a new memory. That cannot achieve with `std::string::String` struct only. We must re-implement the `RawVec` struct.
|
||||||
|
|
||||||
## Rust standard library confliction problem
|
## Rust standard library conflict problem
|
||||||
|
|
||||||
Rarely, but not never, dynamically compiled templates may use different version of standard library.
|
Rarely, but not never, dynamically compiled templates may use different version of standard library.
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ We must ensure that all of the data passed to templates should satisfy the follo
|
||||||
|
|
||||||
- completely immutable
|
- completely immutable
|
||||||
- does not allocate/deallocate memory
|
- does not allocate/deallocate memory
|
||||||
- can be serialized to/deserialized from byte array (All data is serealized to byte array, and then decoded inside templates)
|
- can be serialized to/deserialized from byte array (All data is serialized to byte array, and then decoded inside templates)
|
||||||
- can be defined inside `#![no_std]` crate
|
- can be defined inside `#![no_std]` crate
|
||||||
|
|
||||||
Sailfish provide `TemplateData` trait which satisfies the above restrictions.
|
Sailfish provide `TemplateData` trait which satisfies the above restrictions.
|
||||||
|
|
Loading…
Reference in New Issue