Skip to content

Commit

Permalink
Release 0.4.0.
Browse files Browse the repository at this point in the history
Changes since v0.3.16 includes:

* Template syntax:
  - Allow local ranges (i.e. `2..7`) in loop expressions.
  - Allow underscore rust names.  There is use for unused variables in
    templates, so allow names starting with underscore.
  - Issue #24 / PR #28: Allow logic operators in `@if ...` expressions.
  - Issue #25 / PR #27: Allow much more in parentehsis expressions.

* Improved examples:
  - A new design for the framework examples web page, using svg graphics.
  - Improve code and inline documentation of iron and nickel examples.
  - Add a similar example with the Gotham framework.

* Recognize `.svg` static files.
* Allocate much fewer strings when parsing expressions in templates.
* PR #26: use `write_all` rather than the `write!` macro in generated
  code, contributed by @kornelski
* Fix `application/octet-stream` MIME type.  Contributed by @kornelski.
* Use write_str/write_all when generating output.  Contributed by
  @kornelski.
  • Loading branch information
kaj committed Jul 5, 2018
1 parent 028dd07 commit d64386f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ructe"
version = "0.3.16"
version = "0.4.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]
description = "Rust Compiled Templates, efficient type-safe web page templates."
documentation = "https://docs.rs/ructe"
Expand Down
2 changes: 1 addition & 1 deletion examples/gotham/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gotham-ructe"
version = "0.1.0"
version = "0.4.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]

build = "src/build.rs"
Expand Down
2 changes: 1 addition & 1 deletion examples/iron/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iron-ructe"
version = "0.3.10"
version = "0.4.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]

build = "src/build.rs"
Expand Down
2 changes: 1 addition & 1 deletion examples/mime03/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "statics"
version = "0.3.10"
version = "0.4.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]

build = "src/build.rs"
Expand Down
2 changes: 1 addition & 1 deletion examples/nickel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nickel-ructe"
version = "0.3.10"
version = "0.4.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]

build = "src/build.rs"
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "simple"
version = "0.3.10"
version = "0.4.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]

build = "src/build.rs"
Expand Down
2 changes: 1 addition & 1 deletion examples/static-sass/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "statics"
version = "0.3.10"
version = "0.4.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]

build = "src/build.rs"
Expand Down
2 changes: 1 addition & 1 deletion examples/statics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "statics"
version = "0.3.10"
version = "0.4.0"
authors = ["Rasmus Kaj <kaj@kth.se>"]

build = "src/build.rs"
Expand Down

0 comments on commit d64386f

Please sign in to comment.