Release 2.7.0: executable handbooks and native user-site workflows
This commit is contained in:
1 parent
aa0c4d0f55
commit
d9aef957f7
562 files changed
+21064
-20387
No files matched your search
@@ -1,18 +1,30 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: Functions and named calls
|
||||
description: `#` defines functions; `>` calls; `-` lists parameter names
|
||||
description: Callable headings, narrative inputs and readable named calls
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
Use `#` / `##` for functions. Parameters are bare `- name` lines under the heading.
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | any | None; execute this page's documented steps in order and observe their output or stated effects |
|
||||
|
||||
Headings expose callable definitions. The input contract sits directly below the heading, and its body names the recipient in prose; callers supply that value by name.
|
||||
|
||||
Call with `>` and named args `param=value`:
|
||||
|
||||
> greet who=World
|
||||
We now **[Call greet](> greet who="World")**.
|
||||
|
||||
## greet
|
||||
+ `who`
|
||||
|
||||
> print text=Hello `who`!
|
||||
| 参数 | 类型 | 默认 | 说明 |
|
||||
|---|---|---|---|
|
||||
| who | any | required | Recipient name inserted into the greeting |
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | any | None; display the computed content on stdout |
|
||||
Input `who`, used by the steps below.
|
||||
|
||||
We now **[Display this step's result](> print text="Hello `who`!")**.
|
||||
Reference in new issue
Block a user