doc: Fix typo

This commit is contained in:
Kogia-sima 2021-01-01 18:21:39 +09:00
parent ace4d1710c
commit f113734981
5 changed files with 9 additions and 9 deletions

View File

@ -15,7 +15,7 @@ Simple, small, and extremely fast template engine for Rust
## ✨ Features
- Simple and intuitive syntax inspired by [EJS](https://ejs.co/)
- Builtin filters
- Built-in filters
- Relatively small number of dependencies (<15 crates in total)
- Extremely fast (See [benchmarks](https://github.com/djc/template-benchmarks-rs))
- Better error message
@ -74,7 +74,7 @@ You can find more examples in [examples](./examples) directory.
🇯🇵 **Ryohei Machida**
* Github: [@Kogia-sima](https://github.com/Kogia-sima)
* GitHub: [@Kogia-sima](https://github.com/Kogia-sima)
## 🤝 Contributing

View File

@ -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

View File

@ -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.
- Write a Rust code directly inside templates, supporting many Rust syntax (struct definision, closure, macro invocation, etc.)
- Builtin filters
- Write a Rust code directly inside templates, supporting many Rust syntax (struct definition, closure, macro invocation, etc.)
- Built-in filters
- Relatively small number of dependencies (<15 crates in total)
- Extremely fast (See [benchmarks](https://github.com/djc/template-benchmarks-rs))
- Better error message
@ -21,7 +21,7 @@ There are many libraries for template rendering in Rust. Among those libraries,
## 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 inheritance (block, partials, etc.)

View File

@ -15,7 +15,7 @@ message: &quot;foo\nbar&quot;
```
!!! 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

View File

@ -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.
## Rust standard library confliction problem
## Rust standard library conflict problem
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
- 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
Sailfish provide `TemplateData` trait which satisfies the above restrictions.