@danielx/civet 0.5.24 → 0.5.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -232,10 +232,13 @@ Things Added that CoffeeScript didn't
232
232
  to specify how to use left-hand side
233
233
  - `|> await`, `|> yield`, and `|> return` (at end)
234
234
  for wrapping left-hand side with that operation
235
- - Flagging shorthand [from LiveScript](https://livescript.net/#literals) `{+debug, -live}` → `{debug: true, live: false}`
235
+ - Flagging shorthand based on [from LiveScript](https://livescript.net/#literals-objects):
236
+ `{+debug, -live, !verbose}` → `{debug: true, live: false, verbose: false}`
236
237
  - JSX enhancements (inspired by [solid-dsl discussions](https://github.com/solidjs-community/solid-dsl/discussions)):
237
238
  - Indentation: instead of explicitly closing `<tag>`s or `<>`s,
238
239
  you can indent the children and Civet will close your tags for you
240
+ - Multiple adjacent elements and/or fragments get automatically
241
+ combined into a fragment.
239
242
  - Arrow function children do not need to be wrapped in braces
240
243
  (assuming they are not preceded by text); this is unambiguous because
241
244
  `>` isn't valid JSX text. For example, `<For> (item) => ...`
@@ -245,6 +248,7 @@ Things Added that CoffeeScript didn't
245
248
  - `.foo` shorthand for `class="foo"` (but must be at least one space after
246
249
  tag name); also `.foo.bar`, `."foo bar"`, `` .`foo ${bar}` ``, `.{expr}`
247
250
  - `"civet react"` flag uses `className` instead of `class`
251
+ - `+foo` shorthand for `foo={true}`, `-foo`/`!foo` shorthand for `foo={false}`
248
252
  - Any braced object literal can be used as an attribute:
249
253
  `{foo}` → `foo={foo}`, `{foo: bar}` → `foo={bar}`,
250
254
  `{...foo}` remains as is; methods and getters/setters work too.