Skip to content

Releases: jpsca/jinjax

0.48

10 Nov 23:08
00da2d0
Compare
Choose a tag to compare

What's Changed

  • Remove dependency that is wrongly imported by @mardiros in #102

Full Changelog: 0.47...0.48

0.47

23 Oct 21:16
ba7c89e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.46...0.47

0.46

29 Aug 04:20
058757a
Compare
Choose a tag to compare

What's Changed

  • Make compiled_css and compiled_js context vars by @jpsca in #90

This means that the catalog.render() method can be called from different threads and the lists of asset URLs will not mix.

Full Changelog: 0.45...0.46

0.45

18 Aug 17:31
bec02ee
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.44...0.45

0.44

11 Aug 12:29
acba16f
Compare
Choose a tag to compare

What's Changed

  • Don't cleanup comments with a regular expression, use ast by @mardiros in #86

Full Changelog: 0.43...0.44

0.43

10 Jul 19:45
Compare
Choose a tag to compare

What's Changed

  • Fix Issue#79: comments after meta declarations by @jpsca in #81

Full Changelog: 0.42...0.43

0.42

10 Jul 18:43
Compare
Choose a tag to compare

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

05 Jul 21:41
377482b
Compare
Choose a tag to compare

Allow comments in {# def declarations

0.4

02 Jul 21:59
fb55838
Compare
Choose a tag to compare
0.4

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

0.37

29 May 22:17
71ca55c
Compare
Choose a tag to compare
  • Fix attrs bug with 0-values (#68)

Full Changelog: 0.36...0.37