Skip to content

Releases: whoward/cadenza

v0.8.0

12 Mar 02:44
Compare
Choose a tag to compare

Features

  • implemented Cadenza::ContextObject which allows both metaprogramming of bound variables and increased security
  • filters may now be applied to any variable, number or string in the template
  • added some error exit codes to the CLI
  • implement the magic variable "super" in block nodes which replaces itself with the content of the parent block
  • new filters: reverse, limit, offset, pluck, map, collect and sort
  • implement Cadenza::SourceRenderer to return a Cadenza AST back it's source form
  • functional variables now have higher precedence than everything else when looking up an identifier's value
  • allow implementing aliases for filters, blocks and functional variables

Bug Fixes

  • a0 and similar will not be allowed as an array index
  • remove trailing \n from wordwrap filter

v0.7.2

12 Mar 02:08
Compare
Choose a tag to compare

Features

  • Add template root option to CLI
  • Add option of reading context from a JSON file in CLI
  • Add loading paths option to CLI

Bug Fixes

  • Nested blocks in extended templates will now render correctly
  • Blocks nested inside an if block will now render correctly

v0.7.1

12 Mar 02:00
Compare
Choose a tag to compare

New Features

  • Added a simple command line interface
  • add Cadenza::ContextObject which must be an ancestor class of any object bound to the context as of 0.8.0

Bug Fixes

  • For loops in extended templates should render blocks in the subtree
  • introduce multi_json gem dependency for JSON parsing in CLI

v0.7.0

12 Mar 01:55
Compare
Choose a tag to compare

Full rewrite of cadenza internals backed by tests

v0.4.2

12 Mar 01:45
Compare
Choose a tag to compare

Fixes some issues in the lexer for MRI 1.9.2

v0.4.1

12 Mar 01:44
Compare
Choose a tag to compare

Fixes #implied_globals for the ForNode class

v0.4.0

12 Mar 01:41
Compare
Choose a tag to compare

First published version of Cadenza