Skip to content

0.4

Compare
Choose a tag to compare
@jpsca jpsca released this 02 Jul 21:59
· 35 commits to main since this release
fb55838

BREAKING CHANGE

To pass values to components as attributes, do not use name={value} anymore. Instead:

  1. For strings, keep using regular quotes: name="string"
  2. For values, use regular quotes but prefix the name with a colon: :name="value".

For example, before:

<Example columns={2} tabbed={False} panels={{'one': 'lorem', 'two': 'ipsum'}} />

is now:

<Example :columns="2" :tabbed="False" :panels="{'one': 'lorem', 'two': 'ipsum'}" />

How to update:

image

  1. Open the search-and-replace of your text editor (VisualStudio Code in this image).
  2. Activate using regular expressions
  3. Toggle "replace"
  4. Search for (\w+)=\{(.*?)\}
    Replace for :$1="$2"
    Only in *.jinja files

OTHER CHANGES

  • Improved component metadata parsing.
  • New documentation theme
  • Jinjax UI first (public) release

I'm working on improving the content of the documentation and it will be released soon.

Full Changelog: 0.37...0.4