Releases: whoward/cadenza
Releases · whoward/cadenza
v0.8.0
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
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
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