Skip to content

Commit 247d672

Browse files
committed
2 parents def8eaa + da7ec44 commit 247d672

2 files changed

Lines changed: 39 additions & 7 deletions

File tree

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 CodeShell
3+
Copyright (c) 2025 CodeShellDev
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22+

README.md

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ In addition to the function in the [Simple Functions](#simple-functions) section
239239

240240
#### `import`
241241

242-
Imports a file and executes it as template, output is discarded.
242+
Imports a file and **executes** it as template, output is **discarded**.
243243

244244
```
245245
import "functions.inc.gtmpl"
@@ -277,13 +277,47 @@ Raw output is discarded only output via [`return`](#return) persists.
277277
> [!WARNING]
278278
> This function is **only** accessible from within functions!
279279
280-
Sets return argument at index to value.
280+
Sets return argument at **index** to **value**.
281281

282282
```
283283
funcDefine "helloWorld" "{{{ return 0 "Hello World!" }}}"
284284
```
285285

286-
Overwriting previous return arguments is possible.
286+
**Overwriting** previous return arguments is possible.
287+
288+
##### `returnNext`
289+
290+
Same as [`return`](#return), but **appends** to output.
291+
292+
Shorthand for:
293+
294+
```
295+
return i+1 value
296+
```
297+
298+
```
299+
returnNext value
300+
```
301+
302+
##### `returnAll`
303+
304+
Sets return output array directly with **multiple** arguments.
305+
306+
```
307+
returnAll out1 out2 out3
308+
```
309+
310+
##### `returnOutputs`
311+
312+
Sets return output array directly with **one array**.
313+
314+
```
315+
returnOutputs array
316+
```
317+
318+
##### `outputsGet`
319+
320+
Returns the whole output array.
287321

288322
#### `funcCall`
289323

@@ -322,6 +356,3 @@ This Project is licensed under the [MIT License](./LICENSE).
322356
## Legal
323357

324358
Logo designed by [@CodeShellDev](https://github.com/codeshelldev) — All Rights Reserved. Go gopher mascot originally created by [Renée French](https://instagram.com/reneefrench/), used under the [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license.
325-
326-
${{{ funcDefine "test" "{{{ return 0 ( index .args 0 ) }}}" }}}
327-
${{{ funcCallArgs "test" "output" }}}

0 commit comments

Comments
 (0)