All Versions
73
Latest Version
Avg Release Cycle
44 days
Latest Release
556 days ago

Changelog History
Page 5

  • v0.11.5 Changes

    March 01, 2018
    • Re-export serde_json::Number as well
  • v0.11.4 Changes

    February 28, 2018
    • Re-export serde_json::Map as well
    • You can now access inside a variable using index notation: {{ arr[0] }}, {{ arr[idx] }} etc thanks to @bootandy
    • โž• Add Context::insert identical to Context::add to mirror Rust HashMap/BTreeMap syntax
  • v0.11.3 Changes

    February 15, 2018
    • โž• Add a slice filter for arrays
    • ๐Ÿ›  Fix macro files importing other macro files not loading properly
    • ๐Ÿ›  Fix forloop container being allowed logic expressions
    • ๐Ÿ“œ Much improved parsing error messages
  • v0.11.2 Changes

    February 01, 2018
    • ๐Ÿ›  Fix regression when including templates that import macros
    • ๐Ÿ›  Fix pluralize filter for real this time!
  • v0.11.1 Changes

    January 25, 2018
    • ๐Ÿ›  Fix regression with expressions in comparisons
  • v0.11.0 Changes

    January 22, 2018

    ๐Ÿ’ฅ Breaking changes

    • โœ… Tests parentheses are now mandatory if there are arguments (divisibleby 2 -> divisibleby(2))
    • โœ… Tests can be only used on variables now, not on expressions
    • Escaping happens immediately now instead of waiting for the filters to be called, unless safe is first. If you want the old behaviour you will need to start the a chain of filters with | safe as the first one

    Others

    • โœ… Tests, global functions calls and macro calls are now expressions and can be combined like so: if x is divisibleby(2) and x > 10
    • โž• Add default arguments for macro arguments
    • โž• Add whitespace management similar to Liquid and Jinja2
    • โž• Add parentheses to expressions to remove ambiguities
    • Block & macro end tag name are no longer mandatory and it doesn't error on mismatched names between the start and end tag anymore
    • Filters can now be applied to expressions
    • โž• Add modulo operator % for math expressions
    • ๐Ÿ‘ Allow comment tags before the extend tag
    • ๐Ÿ‘‰ Make NaiveDateTime work with the date filter
    • pluralize filter now returns the plural suffix for 0 thing as it's apparently what English does
    • โž• Add a set_global tag that allows you to set something in the global context: meant to be used in forloops where the normal set would put the value into the loop context
    • Add starting_with, ending_with and containing tests
    • โž• Add json_encode, default and sort filters
    • Strings can now also be contained in backticks and single quotes in templates
  • v0.10.10 Changes

    August 24, 2017
    • โž• Add Tera::parse for some niche use-cases
  • v0.10.9 Changes

    August 02, 2017
    • ๐Ÿ– Handle path to templates starting with "./"
    • ๐Ÿ›  Fix loop and macro context overlaps
    • ๐Ÿ›  Fix variables being escaped when given to set or as arguments to filters/macros/global fns
  • v0.10.8 Changes

    June 24, 2017
    • โšก๏ธ Update chrono
  • v0.10.7 Changes

    June 16, 2017
    • ๐Ÿ›  Fix not being able to use variables starting with or, and and not
    • ๐Ÿ›  Fix <= and >= not being recognised properly
    • ๐Ÿ›  Fix if/elif conditions falling through: only the first valid one will be rendered
    • ๐Ÿ– Handle NaN results in {% set %} instead of panicking
    • ๐Ÿ‘ Allow math node on if/elif conditions & fix f64 truthiness