Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
Closes Keats#728
  • Loading branch information
Keats committed Jun 10, 2022
1 parent 288f80b commit cbd790e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.16.0 (2022-06-10)

- Add a feature just for the urlencode builtin
- Fix bug in slice filter if start >= end
- Allow supplying a timezone to a timestamp for the date filter

## 1.15.0 (2021-11-03)

- Add `default` parameter to `get` filter
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tera"
version = "1.15.0"
version = "1.16.0"
authors = ["Vincent Prouillet <[email protected]>"]
license = "MIT"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/tera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl Tera {
/// context.insert("age", 18);
/// tera.render("hello.html", context);
/// // Rendering a template with an empty context
/// tera.render("hello.html", Context::new());
/// let output = tera.render("hello.html", Context::new());
/// ```
pub fn render(&self, template_name: &str, context: &Context) -> Result<String> {
let template = self.get_template(template_name)?;
Expand Down

0 comments on commit cbd790e

Please sign in to comment.