Releases: jpsca/jinjax
Releases · jpsca/jinjax
0.48
0.47
What's Changed
- Add FastAPI example by @Noreu in #96
- Define all to re-export classes by @jacobcheatley in #99
- Fix #95: Makes
whitenoise
optional to install by @jpsca in #100
New Contributors
- @Noreu made their first contribution in #96
- @jacobcheatley made their first contribution in #99
Full Changelog: 0.46...0.47
0.46
0.45
0.44
0.43
0.42
What's Changed
- Add support to double-curly-braces syntax in addition of the vue-like syntax for passing arguments to components by @jpsca in #80
Both of these are now valid:
<Example
columns={{ 2 }}
tabbed={{ False }}
panels={{ {'one': 'lorem', 'two': 'ipsum'} }}
class={{ 'bg-' + color }}
/>
<Example
:columns="2"
:tabbed="False"
:panels="{'one': 'lorem', 'two': 'ipsum'}"
:class="'bg-' + color"
/>
Full Changelog: 0.41...0.42
0.41
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