0.4
BREAKING CHANGE
To pass values to components as attributes, do not use name={value}
anymore. Instead:
- For strings, keep using regular quotes:
name="string"
- 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:
- Open the search-and-replace of your text editor (VisualStudio Code in this image).
- Activate using regular expressions
- Toggle "replace"
- 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