Skip to content

0.5.0 - 2024-04-05

Compare
Choose a tag to compare
@sfisol sfisol released this 05 Apr 06:57
· 21 commits to master since this release

Added

  • window! and document! macro to allow invoking simple JavaScript commands
  • Driver::plains method to allow responding with plaintext pages
  • In css! macro there is now possibility to reference a class created by another css! using [] brackets
  • Enums nad newtypes support in AutoJsJson
  • bind! macro now accepts namespaced variables, f. ex. bind!(state.value, || value + 100)
  • Components now accept value without attribute name if the names matches (color={color}{color})
  • In dom! macro .. operator now spreads iterable into children (<ul>{..items}</ul>)

Changed

  • Hashing of bundled files shortened from SHA256 to CRC64/Base64 to have file names shorter

Fixed

  • Component embedding using non-local name (f. ex. <my_module::MyComponent />)
  • Raw field name support in AutoJsJson derive macro
  • component! macro copying attributes to struct (and doc-strings)
  • css! macro resolving expressions in url
  • vertigo-cli: Watch script now attached inside body tag