You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: issue-followup-plan.md
+9-36Lines changed: 9 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,11 @@
2
2
3
3
This cleanup pass closed 55 old issues that were stale, already answered, resolved in current Scriban, or outside the scope of core Scriban.
4
4
5
-
Issues `#625`, `#453`, and `#529` are fixed locally by the changes in this pass.
5
+
Issues `#625`, `#453`, `#529`, and `#209` are fixed locally by the changes in this pass.
6
6
7
-
The 8 issues below remain open because they were either reproduced on current head, still point to incorrect documentation, or need an explicit design decision before any code change is worth doing.
7
+
Issue `#553` is being closed without a code change because `{{~ ... }}` shows the same indentation-trimming behavior at top level, so this does not appear to be a caller-indent regression specific to function rendering.
8
+
9
+
The 6 issues below remain open because they need an explicit design decision before any code change is worth doing, or are low-priority cleanup items better closed later.
8
10
9
11
Default stance for the next pass:
10
12
@@ -14,35 +16,8 @@ Default stance for the next pass:
14
16
15
17
## 1. Concrete docs and bug fixes
16
18
17
-
### #553 Whitespace control inside of functions affects auto-indent of caller
18
-
19
-
Status: reproduced.
20
-
21
-
Evidence:
22
-
23
-
-`{{~ ... }}` inside a called function still perturbs the caller's auto-indent/output layout.
24
-
25
-
Suggested action:
26
-
27
-
- Isolate callee whitespace trimming from caller indentation state.
28
-
- Add regression tests for function calls with and without `{{~ ... }}` inside the callee body.
29
-
30
19
## 2. Docs cleanup that should be narrowed
31
20
32
-
### #209 Is the documentation out of date?
33
-
34
-
Status: still broadly true, but too broad.
35
-
36
-
Evidence:
37
-
38
-
-`site/docs/runtime/scriptobject.md` still says pipe calls pass the previous value as the last argument, which is outdated or at least misleading.
39
-
-#625 is another concrete example of doc drift.
40
-
41
-
Suggested action:
42
-
43
-
- Either narrow this issue to a short checklist of specific doc fixes or close it after fixing the concrete doc items already identified.
44
-
- Do not leave this as a permanent catch-all docs issue.
45
-
46
21
## 3. Feature and design decisions before implementation
47
22
48
23
### #188 array.sort only works with simple members (can't use nested members)
Copy file name to clipboardExpand all lines: site/docs/runtime/scriptobject.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,8 +107,8 @@ This function can be imported into a ScriptObject:
107
107
Console.WriteLine(result);
108
108
```
109
109
110
-
> Notice that when using a function with pipe calls like `{{ "{{" }}description | string.strip {{ "}}" }}`, the last argument passed to the `string.strip` function is the result of the previous pipe.
111
-
> That's a reason why you will notice in all builtin functions in scriban that they usually take the most relevant parameter as a last parameter instead of the first parameter, to allow proper support for pipe calls.
110
+
> Notice that when using a function with pipe calls like `{{ "{{" }}description | string.strip {{ "}}" }}`, the result of the previous pipe becomes the first explicit argument passed to `string.strip`.
111
+
> For example, `{{ "{{" }} date | format "dd.MM" {{ "}}" }}` calls `format(date, "dd.MM")` (or `format(context, date, "dd.MM")` for methods that declare a leading `TemplateContext`).
0 commit comments