Skip to content

Commit

Permalink
docs: revert docs for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
stdword committed Feb 22, 2024
1 parent ced84e1 commit 8251dcc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## v3.5 :id=v350
<!-- ## v3.5 :id=v350
### New syntax
- Array [runtime functions](reference__syntax.md#statement-syntax): `.countby`
- [`layout.args`](reference__tags.md#nesting-layout) template tag for usage in pair with `layout` to pass command arguments through inheritance call
- [`layout.args`](reference__tags.md#nesting-layout) template tag for usage in pair with `layout` to pass command arguments through inheritance call -->



Expand Down
12 changes: 7 additions & 5 deletions docs/reference__syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Also the `Array` type extended with helpful functions:
- `Array.unique()`
- `Array.sorted(keyfunc)`
- `Array.groupby(keyfunc, wrapToObject? = false)`
- `Array.countby(keyfunc, wrapToObject? = false)`
<!-- - `Array.countby(keyfunc, wrapToObject? = false)` -->

<!-- div:right-panel -->
<!-- tabs:start -->
Expand Down Expand Up @@ -215,9 +215,10 @@ Also the `Array` type extended with helpful functions:
- ```javascript
``JSON.stringify(items.groupby((x) => x.type, true), null, 4)``
```
- ```javascript

<!-- - ```javascript
``JSON.stringify(items.countby((x) => x.type), null, 4)``
```
``` -->

#### ***Rendered***
- ```javascript
Expand All @@ -244,10 +245,11 @@ Also the `Array` type extended with helpful functions:
]
}
```
- ```javascript

<!-- - ```javascript
// .countby
[ ["vegetables", 1], ["fruit", 2], ["meat", 2] ]
```
``` -->

<!-- tabs:end -->

Expand Down
8 changes: 4 additions & 4 deletions docs/reference__tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ Buy list: \
### `layout` :id=nesting-layout
Include another template by name. Acts like [`include`](#include) with the only difference: it preserves template [arg-properties](reference__args.md#arg-properties). Use it to **inherit templates**.

`async layout(name, ...args?)`
`layout.args(...names)` — used to pass through current arguments to layout template
<!-- - `async layout(name, ...args?)`
- `layout.args(...names)` — used to pass through current arguments to layout template
- `names`: the name of an argument or a positional link: `$1`, `$2`, etc.
- if unspecified: all arguments will be passed through
- if unspecified: all arguments will be passed through -->

<!-- tabs:start -->
#### ***Template «parent»***
Expand All @@ -348,8 +348,8 @@ Include another template by name. Acts like [`include`](#include) with the only
arg-value:: OVERRIDED
- ``await include('nested')``
- ``await layout('nested')``
- ``await layout('nested', layout.args('value'))``
```
<!-- - ``await layout('nested', layout.args('value'))`` -->

#### ***Rendered***
- ORIGINAL
Expand Down

0 comments on commit 8251dcc

Please sign in to comment.