tutuca 0.9.69 → 0.9.71

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tutuca",
3
- "version": "0.9.69",
3
+ "version": "0.9.71",
4
4
  "type": "module",
5
5
  "description": "Zero-dependency SPA framework with immutable state and virtual DOM",
6
6
  "main": "./dist/tutuca.js",
@@ -1,11 +1,13 @@
1
1
  # Tutuca CLI Reference
2
2
 
3
3
  The `tutuca` CLI inspects, documents, lints, tests, and renders any
4
- module that follows the *Conventional Module Exports* shape (see
5
- `core.md`). Reach this file when you need command/flag/exit-code
4
+ module that follows the
5
+ [Conventional Module Exports](./core.md#conventional-module-exports)
6
+ shape. Reach this file when you need command/flag/exit-code
6
7
  details, or when reading a lint code out of `lint` output. Otherwise
7
- *Verifying changes* in `core.md` (run `lint`, then `test` for
8
- behavior changes, then `render --title "<your example>"`) is enough.
8
+ [Verifying changes](./core.md#verifying-changes) in `core.md` (run
9
+ `lint`, then `test` for behavior changes, then
10
+ `render --title "<your example>"`) is enough.
9
11
 
10
12
  ## Install / invoke
11
13
 
@@ -189,8 +189,8 @@ separate.
189
189
 
190
190
  Views are name-based: there is no arithmetic expression syntax in
191
191
  values, and no Vue- or Mustache-style `{{ … }}` placeholders. Every
192
- value slot — conditions (`@show`, `@if`, `@when`), iteration (`@each`,
193
- `render-each`), enrichment (`@enrich-with`, `@loop-with`), template
192
+ value slot — conditions (`@show`, `@if`), iteration (`@each`,
193
+ `render-each`, `@when`), enrichment (`@enrich-with`, `@loop-with`), template
194
194
  expansion (`{…}`, `:attr`, `@text`) — names a field, method, macro, or
195
195
  handler defined on the component (or registered with the app). Logic
196
196
  lives in `methods` / `alter` / `input` / `bubble` / `receive` /
@@ -217,7 +217,7 @@ literal with spaces (escape an interior quote as `\'`).
217
217
  | `@x` | local binding (loop / scope) | `@key`, `@value` |
218
218
  | `^x` | macro parameter | `^label` |
219
219
  | `!x` | request handler | `!loadData` |
220
- | `*x` | dynamic binding — see `advanced.md` | `*theme` |
220
+ | `*x` | dynamic binding — see [advanced.md](./advanced.md) | `*theme` |
221
221
  | `Name` | component type (PascalCase) | `Item`, `JsonNull` |
222
222
  | `name` | bare identifier — meaning depends on slot | `dec`, `value` |
223
223
  | `'str'` | string literal | `'btn btn-success'` |
@@ -419,6 +419,11 @@ statics: {
419
419
  <x text="@value"></x> <!-- loop binding -->
420
420
  ```
421
421
 
422
+ Use `@text` when you already have a host element to put the text in; use
423
+ `<x text=…>` for bare text with no wrapping element (e.g. text interleaved with
424
+ other inline content, or a loop binding). Both take the same value forms
425
+ (`.field`, `$method`, `@binding`).
426
+
422
427
  ## Attribute Binding
423
428
 
424
429
  ```html
@@ -899,3 +904,16 @@ export function getExamples() {
899
904
  }
900
905
  export function getTests({ describe, test, expect }) { /*...*/ } // optional — see cli.md
901
906
  ```
907
+
908
+ ## See also
909
+
910
+ - [request-response.md](./request-response.md) — `bubble` / `send`-`receive` /
911
+ `request`-`response` channels, the `ctx.at` `PathBuilder`, `$unknown`, and
912
+ request-handler registration.
913
+ - [advanced.md](./advanced.md) — dynamic bindings (`*x`), pseudo-`@x` for
914
+ `<select>` / `<table>` / `<tr>`, drag & drop, custom seq types, Tailwind /
915
+ MargaUI compilation.
916
+ - [testing.md](./testing.md) — `getTests` shape and the handler calling
917
+ convention for tests.
918
+ - [cli.md](./cli.md) — commands, flags, exit codes, and the full linter rule
919
+ list.