binja 0.5.0 → 0.5.2
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/README.md +127 -95
- package/dist/filters/index.d.ts +2 -0
- package/dist/filters/index.d.ts.map +1 -1
- package/dist/index.js +107 -34
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -240,109 +240,141 @@ app.get('/user/:id', ({ params }) => templates.user({ id: params.id }))
|
|
|
240
240
|
|
|
241
241
|
---
|
|
242
242
|
|
|
243
|
-
## Filters
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
|
250
|
-
|
|
251
|
-
| `
|
|
252
|
-
| `
|
|
253
|
-
| `
|
|
254
|
-
| `
|
|
255
|
-
| `
|
|
256
|
-
| `
|
|
257
|
-
| `striptags` | `{{ "<p>
|
|
258
|
-
| `
|
|
259
|
-
| `
|
|
260
|
-
| `
|
|
261
|
-
| `
|
|
262
|
-
| `
|
|
263
|
-
| `
|
|
264
|
-
| `
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
|
269
|
-
|
|
270
|
-
| `
|
|
271
|
-
| `
|
|
272
|
-
| `
|
|
273
|
-
| `
|
|
274
|
-
| `
|
|
275
|
-
| `
|
|
276
|
-
| `
|
|
277
|
-
|
|
278
|
-
###
|
|
279
|
-
|
|
280
|
-
| Filter |
|
|
281
|
-
|
|
282
|
-
| `
|
|
283
|
-
| `
|
|
284
|
-
| `
|
|
285
|
-
| `
|
|
286
|
-
| `
|
|
287
|
-
| `
|
|
288
|
-
| `
|
|
289
|
-
| `
|
|
290
|
-
| `
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
| `
|
|
298
|
-
| `
|
|
299
|
-
| `
|
|
300
|
-
| `
|
|
243
|
+
## Filters (84 Built-in)
|
|
244
|
+
|
|
245
|
+
binja includes **84 built-in filters** covering both Jinja2 and Django Template Language.
|
|
246
|
+
|
|
247
|
+
### String Filters (26)
|
|
248
|
+
|
|
249
|
+
| Filter | Description | Example |
|
|
250
|
+
|--------|-------------|---------|
|
|
251
|
+
| `upper` | Uppercase | `{{ "hello"\|upper }}` → `HELLO` |
|
|
252
|
+
| `lower` | Lowercase | `{{ "HELLO"\|lower }}` → `hello` |
|
|
253
|
+
| `capitalize` | First letter uppercase | `{{ "hello"\|capitalize }}` → `Hello` |
|
|
254
|
+
| `capfirst` | First char uppercase | `{{ "hello"\|capfirst }}` → `Hello` |
|
|
255
|
+
| `title` | Title case | `{{ "hello world"\|title }}` → `Hello World` |
|
|
256
|
+
| `trim` | Strip whitespace | `{{ " hi "\|trim }}` → `hi` |
|
|
257
|
+
| `striptags` | Remove HTML tags | `{{ "<p>Hi</p>"\|striptags }}` → `Hi` |
|
|
258
|
+
| `slugify` | URL-friendly slug | `{{ "Hello World!"\|slugify }}` → `hello-world` |
|
|
259
|
+
| `truncatechars` | Truncate to N chars | `{{ "hello"\|truncatechars:3 }}` → `hel...` |
|
|
260
|
+
| `truncatewords` | Truncate to N words | `{{ "a b c d"\|truncatewords:2 }}` → `a b...` |
|
|
261
|
+
| `truncatechars_html` | Truncate preserving HTML | `{{ "<b>hi</b> world"\|truncatechars_html:5 }}` |
|
|
262
|
+
| `truncatewords_html` | Truncate words in HTML | `{{ "<p>a b c</p>"\|truncatewords_html:2 }}` |
|
|
263
|
+
| `wordcount` | Count words | `{{ "hello world"\|wordcount }}` → `2` |
|
|
264
|
+
| `wordwrap` | Wrap at N chars | `{{ text\|wordwrap:40 }}` |
|
|
265
|
+
| `center` | Center in N chars | `{{ "hi"\|center:10 }}` → ` hi ` |
|
|
266
|
+
| `ljust` | Left justify | `{{ "hi"\|ljust:10 }}` → `hi ` |
|
|
267
|
+
| `rjust` | Right justify | `{{ "hi"\|rjust:10 }}` → ` hi` |
|
|
268
|
+
| `cut` | Remove substring | `{{ "hello"\|cut:"l" }}` → `heo` |
|
|
269
|
+
| `replace` | Replace substring | `{{ "hello"\|replace:"l","x" }}` → `hexxo` |
|
|
270
|
+
| `indent` | Indent lines | `{{ text\|indent:4 }}` |
|
|
271
|
+
| `linebreaks` | Newlines to `<p>/<br>` | `{{ text\|linebreaks }}` |
|
|
272
|
+
| `linebreaksbr` | Newlines to `<br>` | `{{ text\|linebreaksbr }}` |
|
|
273
|
+
| `linenumbers` | Add line numbers | `{{ code\|linenumbers }}` |
|
|
274
|
+
| `addslashes` | Escape quotes | `{{ "it's"\|addslashes }}` → `it\'s` |
|
|
275
|
+
| `format` | sprintf-style format | `{{ "Hi %s"\|format:name }}` |
|
|
276
|
+
| `stringformat` | Python % format | `{{ 5\|stringformat:"03d" }}` → `005` |
|
|
277
|
+
|
|
278
|
+
### Number Filters (9)
|
|
279
|
+
|
|
280
|
+
| Filter | Description | Example |
|
|
281
|
+
|--------|-------------|---------|
|
|
282
|
+
| `abs` | Absolute value | `{{ -5\|abs }}` → `5` |
|
|
283
|
+
| `int` | Convert to integer | `{{ "42"\|int }}` → `42` |
|
|
284
|
+
| `float` | Convert to float | `{{ "3.14"\|float }}` → `3.14` |
|
|
285
|
+
| `round` | Round number | `{{ 3.7\|round }}` → `4` |
|
|
286
|
+
| `add` | Add number | `{{ 5\|add:3 }}` → `8` |
|
|
287
|
+
| `divisibleby` | Check divisibility | `{{ 10\|divisibleby:2 }}` → `true` |
|
|
288
|
+
| `floatformat` | Format decimal places | `{{ 3.14159\|floatformat:2 }}` → `3.14` |
|
|
289
|
+
| `filesizeformat` | Human file size | `{{ 1048576\|filesizeformat }}` → `1.0 MB` |
|
|
290
|
+
| `get_digit` | Get Nth digit | `{{ 12345\|get_digit:2 }}` → `4` |
|
|
291
|
+
|
|
292
|
+
### List/Array Filters (22)
|
|
293
|
+
|
|
294
|
+
| Filter | Description | Example |
|
|
295
|
+
|--------|-------------|---------|
|
|
296
|
+
| `length` | List length | `{{ items\|length }}` → `3` |
|
|
297
|
+
| `length_is` | Check length | `{{ items\|length_is:3 }}` → `true` |
|
|
298
|
+
| `first` | First item | `{{ items\|first }}` |
|
|
299
|
+
| `last` | Last item | `{{ items\|last }}` |
|
|
300
|
+
| `join` | Join with separator | `{{ items\|join:", " }}` → `a, b, c` |
|
|
301
|
+
| `slice` | Slice list | `{{ items\|slice:":2" }}` |
|
|
302
|
+
| `reverse` | Reverse list | `{{ items\|reverse }}` |
|
|
303
|
+
| `sort` | Sort list | `{{ items\|sort }}` |
|
|
304
|
+
| `unique` | Remove duplicates | `{{ items\|unique }}` |
|
|
305
|
+
| `batch` | Group into batches | `{{ items\|batch:2 }}` |
|
|
306
|
+
| `columns` | Split into columns | `{{ items\|columns:3 }}` |
|
|
307
|
+
| `dictsort` | Sort dict by key | `{{ dict\|dictsort }}` |
|
|
308
|
+
| `dictsortreversed` | Sort dict reversed | `{{ dict\|dictsortreversed }}` |
|
|
309
|
+
| `groupby` | Group by attribute | `{{ items\|groupby:"category" }}` |
|
|
310
|
+
| `random` | Random item | `{{ items\|random }}` |
|
|
311
|
+
| `list` | Convert to list | `{{ value\|list }}` |
|
|
312
|
+
| `make_list` | String to char list | `{{ "abc"\|make_list }}` → `['a','b','c']` |
|
|
313
|
+
| `map` | Map attribute | `{{ items\|map:"name" }}` |
|
|
314
|
+
| `select` | Filter by test | `{{ items\|select:"even" }}` |
|
|
315
|
+
| `reject` | Reject by test | `{{ items\|reject:"none" }}` |
|
|
316
|
+
| `selectattr` | Filter by attr test | `{{ items\|selectattr:"active" }}` |
|
|
317
|
+
| `rejectattr` | Reject by attr test | `{{ items\|rejectattr:"hidden" }}` |
|
|
318
|
+
|
|
319
|
+
### Math Filters (4)
|
|
320
|
+
|
|
321
|
+
| Filter | Description | Example |
|
|
322
|
+
|--------|-------------|---------|
|
|
323
|
+
| `max` | Maximum value | `{{ items\|max }}` |
|
|
324
|
+
| `min` | Minimum value | `{{ items\|min }}` |
|
|
325
|
+
| `sum` | Sum of values | `{{ items\|sum }}` |
|
|
326
|
+
| `attr` | Get attribute | `{{ item\|attr:"name" }}` |
|
|
327
|
+
|
|
328
|
+
### Date/Time Filters (4)
|
|
329
|
+
|
|
330
|
+
| Filter | Description | Example |
|
|
331
|
+
|--------|-------------|---------|
|
|
332
|
+
| `date` | Format date | `{{ now\|date:"Y-m-d" }}` → `2024-01-15` |
|
|
333
|
+
| `time` | Format time | `{{ now\|time:"H:i" }}` → `14:30` |
|
|
334
|
+
| `timesince` | Time since date | `{{ past\|timesince }}` → `2 days ago` |
|
|
335
|
+
| `timeuntil` | Time until date | `{{ future\|timeuntil }}` → `in 3 hours` |
|
|
301
336
|
|
|
302
337
|
#### Timezone Support
|
|
303
338
|
|
|
304
|
-
All date/time operations respect the `timezone` option in Environment:
|
|
305
|
-
|
|
306
339
|
```typescript
|
|
307
340
|
const env = new Environment({
|
|
308
|
-
timezone: 'Europe/Rome' // All dates
|
|
309
|
-
})
|
|
310
|
-
|
|
311
|
-
// 2024-06-15 12:00 UTC = 2024-06-15 14:00 Rome (UTC+2)
|
|
312
|
-
await env.renderString('{{ date|date:"Y-m-d H:i" }}', {
|
|
313
|
-
date: new Date('2024-06-15T12:00:00Z')
|
|
341
|
+
timezone: 'Europe/Rome' // All dates in Rome timezone
|
|
314
342
|
})
|
|
315
|
-
// Output: 2024-06-15 14:00
|
|
316
|
-
|
|
317
|
-
// {% now %} tag also uses the configured timezone
|
|
318
|
-
await env.renderString('{% now "Y-m-d H:i" %}')
|
|
319
|
-
// Output: current date/time in Rome timezone
|
|
320
343
|
```
|
|
321
344
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
|
327
|
-
|
|
328
|
-
| `
|
|
329
|
-
| `
|
|
330
|
-
| `
|
|
331
|
-
| `
|
|
332
|
-
| `
|
|
333
|
-
| `
|
|
334
|
-
| `
|
|
335
|
-
| `
|
|
336
|
-
| `
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
|
343
|
-
|
|
344
|
-
| `
|
|
345
|
-
| `
|
|
345
|
+
### Safety & Encoding Filters (13)
|
|
346
|
+
|
|
347
|
+
| Filter | Description | Example |
|
|
348
|
+
|--------|-------------|---------|
|
|
349
|
+
| `escape` / `e` | HTML escape | `{{ html\|escape }}` |
|
|
350
|
+
| `forceescape` | Force HTML escape | `{{ html\|forceescape }}` |
|
|
351
|
+
| `safe` | Mark as safe | `{{ html\|safe }}` |
|
|
352
|
+
| `safeseq` | Mark sequence safe | `{{ items\|safeseq }}` |
|
|
353
|
+
| `escapejs` | JS string escape | `{{ text\|escapejs }}` |
|
|
354
|
+
| `urlencode` | URL encode | `{{ url\|urlencode }}` |
|
|
355
|
+
| `iriencode` | IRI encode | `{{ url\|iriencode }}` |
|
|
356
|
+
| `urlize` | URLs to links | `{{ text\|urlize }}` |
|
|
357
|
+
| `urlizetrunc` | URLs to links (truncated) | `{{ text\|urlizetrunc:15 }}` |
|
|
358
|
+
| `json` / `tojson` | JSON stringify | `{{ data\|json }}` |
|
|
359
|
+
| `json_script` | Safe JSON in script | `{{ data\|json_script:"id" }}` |
|
|
360
|
+
| `pprint` | Pretty print | `{{ data\|pprint }}` |
|
|
361
|
+
| `xmlattr` | Dict to XML attrs | `{{ attrs\|xmlattr }}` |
|
|
362
|
+
|
|
363
|
+
### Default/Conditional Filters (4)
|
|
364
|
+
|
|
365
|
+
| Filter | Description | Example |
|
|
366
|
+
|--------|-------------|---------|
|
|
367
|
+
| `default` / `d` | Default value | `{{ missing\|default:"N/A" }}` |
|
|
368
|
+
| `default_if_none` | Default if null | `{{ val\|default_if_none:"None" }}` |
|
|
369
|
+
| `yesno` | Boolean to text | `{{ true\|yesno:"Yes,No" }}` → `Yes` |
|
|
370
|
+
| `pluralize` | Pluralize suffix | `{{ count\|pluralize }}` → `s` |
|
|
371
|
+
|
|
372
|
+
### Misc Filters (2)
|
|
373
|
+
|
|
374
|
+
| Filter | Description | Example |
|
|
375
|
+
|--------|-------------|---------|
|
|
376
|
+
| `items` | Dict to pairs | `{% for k,v in dict\|items %}` |
|
|
377
|
+
| `unordered_list` | Nested list to HTML | `{{ items\|unordered_list }}` |
|
|
346
378
|
|
|
347
379
|
---
|
|
348
380
|
|
package/dist/filters/index.d.ts
CHANGED
|
@@ -88,5 +88,7 @@ export declare const stringformat: FilterFunction;
|
|
|
88
88
|
export declare const truncatechars_html: FilterFunction;
|
|
89
89
|
export declare const truncatewords_html: FilterFunction;
|
|
90
90
|
export declare const urlizetrunc: FilterFunction;
|
|
91
|
+
export declare const items: FilterFunction;
|
|
92
|
+
export declare const xmlattr: FilterFunction;
|
|
91
93
|
export declare const builtinFilters: Record<string, FilterFunction>;
|
|
92
94
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/filters/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;AAuBhE,eAAO,MAAM,KAAK,EAAE,cAAuD,CAAA;AAE3E,eAAO,MAAM,KAAK,EAAE,cAAuD,CAAA;AAE3E,eAAO,MAAM,UAAU,EAAE,cAGxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cAGtB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,cACwC,CAAA;AAE5D,eAAO,MAAM,IAAI,EAAE,cAAgD,CAAA;AAEnE,eAAO,MAAM,SAAS,EAAE,cACoB,CAAA;AAE5C,eAAO,MAAM,MAAM,EAAE,cAWpB,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,cAKlB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cACqB,CAAA;AAE5C,eAAO,MAAM,UAAU,EAAE,cAaxB,CAAA;AAED,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,CAAA;AAKD,eAAO,MAAM,KAAK,EAAE,cAGnB,CAAA;AAID,eAAO,MAAM,OAAO,EAAE,cAoBrB,CAAA;AAID,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAiHzD,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1983,9 +1983,18 @@ var sort = (value, reverse2 = false) => {
|
|
|
1983
1983
|
return reverse2 ? sorted.reverse() : sorted;
|
|
1984
1984
|
};
|
|
1985
1985
|
var unique = (value) => {
|
|
1986
|
-
if (Array.isArray(value))
|
|
1987
|
-
return
|
|
1988
|
-
|
|
1986
|
+
if (!Array.isArray(value))
|
|
1987
|
+
return value;
|
|
1988
|
+
const seen = new Set;
|
|
1989
|
+
const result = [];
|
|
1990
|
+
for (let i = 0;i < value.length; i++) {
|
|
1991
|
+
const v = value[i];
|
|
1992
|
+
if (!seen.has(v)) {
|
|
1993
|
+
seen.add(v);
|
|
1994
|
+
result.push(v);
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
return result;
|
|
1989
1998
|
};
|
|
1990
1999
|
var make_list = (value) => {
|
|
1991
2000
|
if (Array.isArray(value))
|
|
@@ -2358,7 +2367,12 @@ var max = (value, attribute, defaultValue) => {
|
|
|
2358
2367
|
}
|
|
2359
2368
|
return maxItem;
|
|
2360
2369
|
}
|
|
2361
|
-
|
|
2370
|
+
let maxVal = value[0];
|
|
2371
|
+
for (let i = 1;i < value.length; i++) {
|
|
2372
|
+
if (value[i] > maxVal)
|
|
2373
|
+
maxVal = value[i];
|
|
2374
|
+
}
|
|
2375
|
+
return maxVal;
|
|
2362
2376
|
};
|
|
2363
2377
|
var min = (value, attribute, defaultValue) => {
|
|
2364
2378
|
if (!Array.isArray(value) || value.length === 0)
|
|
@@ -2372,7 +2386,12 @@ var min = (value, attribute, defaultValue) => {
|
|
|
2372
2386
|
}
|
|
2373
2387
|
return minItem;
|
|
2374
2388
|
}
|
|
2375
|
-
|
|
2389
|
+
let minVal = value[0];
|
|
2390
|
+
for (let i = 1;i < value.length; i++) {
|
|
2391
|
+
if (value[i] < minVal)
|
|
2392
|
+
minVal = value[i];
|
|
2393
|
+
}
|
|
2394
|
+
return minVal;
|
|
2376
2395
|
};
|
|
2377
2396
|
var sum = (value, attribute, start = 0) => {
|
|
2378
2397
|
if (!Array.isArray(value))
|
|
@@ -2649,6 +2668,29 @@ var urlizetrunc = (value, limit = 15) => {
|
|
|
2649
2668
|
safeString.__safe__ = true;
|
|
2650
2669
|
return safeString;
|
|
2651
2670
|
};
|
|
2671
|
+
var items = (value) => {
|
|
2672
|
+
if (value == null || typeof value !== "object")
|
|
2673
|
+
return [];
|
|
2674
|
+
return Object.entries(value);
|
|
2675
|
+
};
|
|
2676
|
+
var xmlattr = (value, autospace = true) => {
|
|
2677
|
+
if (value == null || typeof value !== "object")
|
|
2678
|
+
return "";
|
|
2679
|
+
const attrs = [];
|
|
2680
|
+
for (const [key, val] of Object.entries(value)) {
|
|
2681
|
+
if (val === true) {
|
|
2682
|
+
attrs.push(key);
|
|
2683
|
+
} else if (val !== false && val != null) {
|
|
2684
|
+
const escaped = Bun.escapeHTML(String(val));
|
|
2685
|
+
attrs.push(`${key}="${escaped}"`);
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
const result = attrs.join(" ");
|
|
2689
|
+
const output = autospace && result ? " " + result : result;
|
|
2690
|
+
const safeString = new String(output);
|
|
2691
|
+
safeString.__safe__ = true;
|
|
2692
|
+
return safeString;
|
|
2693
|
+
};
|
|
2652
2694
|
var builtinFilters = {
|
|
2653
2695
|
upper,
|
|
2654
2696
|
lower,
|
|
@@ -2736,7 +2778,9 @@ var builtinFilters = {
|
|
|
2736
2778
|
stringformat,
|
|
2737
2779
|
truncatechars_html,
|
|
2738
2780
|
truncatewords_html,
|
|
2739
|
-
urlizetrunc
|
|
2781
|
+
urlizetrunc,
|
|
2782
|
+
items,
|
|
2783
|
+
xmlattr
|
|
2740
2784
|
};
|
|
2741
2785
|
|
|
2742
2786
|
// src/tests/index.ts
|
|
@@ -3087,13 +3131,13 @@ class Runtime {
|
|
|
3087
3131
|
}
|
|
3088
3132
|
renderForSync(node, ctx) {
|
|
3089
3133
|
const iterable2 = this.eval(node.iter, ctx);
|
|
3090
|
-
const
|
|
3091
|
-
const len =
|
|
3134
|
+
const items2 = this.toIterable(iterable2);
|
|
3135
|
+
const len = items2.length;
|
|
3092
3136
|
if (len === 0) {
|
|
3093
3137
|
return this.renderNodesSync(node.else_, ctx);
|
|
3094
3138
|
}
|
|
3095
3139
|
ctx.push();
|
|
3096
|
-
ctx.pushForLoop(
|
|
3140
|
+
ctx.pushForLoop(items2, 0);
|
|
3097
3141
|
let result;
|
|
3098
3142
|
if (Array.isArray(node.target)) {
|
|
3099
3143
|
const targets = node.target;
|
|
@@ -3101,9 +3145,9 @@ class Runtime {
|
|
|
3101
3145
|
if (len < 50) {
|
|
3102
3146
|
result = "";
|
|
3103
3147
|
for (let i = 0;i < len; i++) {
|
|
3104
|
-
const item =
|
|
3148
|
+
const item = items2[i];
|
|
3105
3149
|
if (i > 0)
|
|
3106
|
-
ctx.updateForLoop(i,
|
|
3150
|
+
ctx.updateForLoop(i, items2);
|
|
3107
3151
|
let values;
|
|
3108
3152
|
if (Array.isArray(item)) {
|
|
3109
3153
|
values = item;
|
|
@@ -3120,9 +3164,9 @@ class Runtime {
|
|
|
3120
3164
|
} else {
|
|
3121
3165
|
const parts = new Array(len);
|
|
3122
3166
|
for (let i = 0;i < len; i++) {
|
|
3123
|
-
const item =
|
|
3167
|
+
const item = items2[i];
|
|
3124
3168
|
if (i > 0)
|
|
3125
|
-
ctx.updateForLoop(i,
|
|
3169
|
+
ctx.updateForLoop(i, items2);
|
|
3126
3170
|
let values;
|
|
3127
3171
|
if (Array.isArray(item)) {
|
|
3128
3172
|
values = item;
|
|
@@ -3144,16 +3188,16 @@ class Runtime {
|
|
|
3144
3188
|
result = "";
|
|
3145
3189
|
for (let i = 0;i < len; i++) {
|
|
3146
3190
|
if (i > 0)
|
|
3147
|
-
ctx.updateForLoop(i,
|
|
3148
|
-
ctx.set(target,
|
|
3191
|
+
ctx.updateForLoop(i, items2);
|
|
3192
|
+
ctx.set(target, items2[i]);
|
|
3149
3193
|
result += this.renderNodesSync(node.body, ctx);
|
|
3150
3194
|
}
|
|
3151
3195
|
} else {
|
|
3152
3196
|
const parts = new Array(len);
|
|
3153
3197
|
for (let i = 0;i < len; i++) {
|
|
3154
3198
|
if (i > 0)
|
|
3155
|
-
ctx.updateForLoop(i,
|
|
3156
|
-
ctx.set(target,
|
|
3199
|
+
ctx.updateForLoop(i, items2);
|
|
3200
|
+
ctx.set(target, items2[i]);
|
|
3157
3201
|
parts[i] = this.renderNodesSync(node.body, ctx);
|
|
3158
3202
|
}
|
|
3159
3203
|
result = parts.join("");
|
|
@@ -3217,9 +3261,12 @@ class Runtime {
|
|
|
3217
3261
|
}
|
|
3218
3262
|
cycleState = new Map;
|
|
3219
3263
|
renderCycleSync(node, ctx) {
|
|
3220
|
-
const key = node.
|
|
3264
|
+
const key = `cycle_${node.line}_${node.column}`;
|
|
3221
3265
|
const currentIndex = this.cycleState.get(key) ?? 0;
|
|
3222
|
-
const values =
|
|
3266
|
+
const values = [];
|
|
3267
|
+
for (let i = 0;i < node.values.length; i++) {
|
|
3268
|
+
values.push(this.eval(node.values[i], ctx));
|
|
3269
|
+
}
|
|
3223
3270
|
const value = values[currentIndex % values.length];
|
|
3224
3271
|
this.cycleState.set(key, currentIndex + 1);
|
|
3225
3272
|
if (node.asVar) {
|
|
@@ -3251,12 +3298,16 @@ class Runtime {
|
|
|
3251
3298
|
const key = `ifchanged_${node.line}_${node.column}`;
|
|
3252
3299
|
let currentValue;
|
|
3253
3300
|
if (node.values.length > 0) {
|
|
3254
|
-
|
|
3301
|
+
const values = [];
|
|
3302
|
+
for (let i = 0;i < node.values.length; i++) {
|
|
3303
|
+
values.push(this.eval(node.values[i], ctx));
|
|
3304
|
+
}
|
|
3305
|
+
currentValue = values;
|
|
3255
3306
|
} else {
|
|
3256
3307
|
currentValue = this.renderNodesSync(node.body, ctx);
|
|
3257
3308
|
}
|
|
3258
3309
|
const lastValue = this.ifchangedState.get(key);
|
|
3259
|
-
const changed =
|
|
3310
|
+
const changed = !this.deepEqual(currentValue, lastValue);
|
|
3260
3311
|
this.ifchangedState.set(key, currentValue);
|
|
3261
3312
|
if (changed) {
|
|
3262
3313
|
if (node.values.length > 0) {
|
|
@@ -3883,19 +3934,19 @@ class Runtime {
|
|
|
3883
3934
|
}
|
|
3884
3935
|
async renderForAsync(node, ctx) {
|
|
3885
3936
|
const iterable2 = this.eval(node.iter, ctx);
|
|
3886
|
-
const
|
|
3887
|
-
const len =
|
|
3937
|
+
const items2 = this.toIterable(iterable2);
|
|
3938
|
+
const len = items2.length;
|
|
3888
3939
|
if (len === 0) {
|
|
3889
3940
|
return this.renderNodesAsync(node.else_, ctx);
|
|
3890
3941
|
}
|
|
3891
3942
|
const parts = new Array(len);
|
|
3892
3943
|
const isUnpacking = Array.isArray(node.target);
|
|
3893
3944
|
ctx.push();
|
|
3894
|
-
ctx.pushForLoop(
|
|
3945
|
+
ctx.pushForLoop(items2, 0);
|
|
3895
3946
|
for (let i = 0;i < len; i++) {
|
|
3896
|
-
const item =
|
|
3947
|
+
const item = items2[i];
|
|
3897
3948
|
if (i > 0)
|
|
3898
|
-
ctx.updateForLoop(i,
|
|
3949
|
+
ctx.updateForLoop(i, items2);
|
|
3899
3950
|
if (isUnpacking) {
|
|
3900
3951
|
let values;
|
|
3901
3952
|
if (Array.isArray(item)) {
|
|
@@ -4003,6 +4054,28 @@ class Runtime {
|
|
|
4003
4054
|
}
|
|
4004
4055
|
return true;
|
|
4005
4056
|
}
|
|
4057
|
+
deepEqual(a, b) {
|
|
4058
|
+
if (a === b)
|
|
4059
|
+
return true;
|
|
4060
|
+
if (a == null || b == null)
|
|
4061
|
+
return a === b;
|
|
4062
|
+
const typeA = typeof a;
|
|
4063
|
+
const typeB = typeof b;
|
|
4064
|
+
if (typeA !== typeB)
|
|
4065
|
+
return false;
|
|
4066
|
+
if (typeA !== "object")
|
|
4067
|
+
return false;
|
|
4068
|
+
if (Array.isArray(a)) {
|
|
4069
|
+
if (!Array.isArray(b) || a.length !== b.length)
|
|
4070
|
+
return false;
|
|
4071
|
+
for (let i = 0;i < a.length; i++) {
|
|
4072
|
+
if (!this.deepEqual(a[i], b[i]))
|
|
4073
|
+
return false;
|
|
4074
|
+
}
|
|
4075
|
+
return true;
|
|
4076
|
+
}
|
|
4077
|
+
return JSON.stringify(a) === JSON.stringify(b);
|
|
4078
|
+
}
|
|
4006
4079
|
isIn(needle, haystack) {
|
|
4007
4080
|
if (Array.isArray(haystack))
|
|
4008
4081
|
return haystack.includes(needle);
|
|
@@ -4907,8 +4980,8 @@ class DebugCollector {
|
|
|
4907
4980
|
if (value.length === 0)
|
|
4908
4981
|
return "[]";
|
|
4909
4982
|
if (value.length <= 3) {
|
|
4910
|
-
const
|
|
4911
|
-
return `[${
|
|
4983
|
+
const items2 = value.map((v) => this.getPreview(v, 15)).join(", ");
|
|
4984
|
+
return `[${items2}]`;
|
|
4912
4985
|
}
|
|
4913
4986
|
return `[${this.getPreview(value[0], 15)}, ... +${value.length - 1}]`;
|
|
4914
4987
|
}
|
|
@@ -5220,7 +5293,7 @@ function generateContextSection(data) {
|
|
|
5220
5293
|
const keys = Object.keys(data.contextSnapshot);
|
|
5221
5294
|
if (keys.length === 0)
|
|
5222
5295
|
return "";
|
|
5223
|
-
const
|
|
5296
|
+
const items2 = keys.map((key) => renderContextValue(key, data.contextSnapshot[key])).join("");
|
|
5224
5297
|
return `
|
|
5225
5298
|
<div class="dbg-section">
|
|
5226
5299
|
<div class="dbg-section-header" onclick="this.parentElement.classList.toggle('open')">
|
|
@@ -5229,7 +5302,7 @@ function generateContextSection(data) {
|
|
|
5229
5302
|
<span class="dbg-chevron">${icons.chevron}</span>
|
|
5230
5303
|
</div>
|
|
5231
5304
|
<div class="dbg-section-content">
|
|
5232
|
-
<div class="dbg-ctx-grid">${
|
|
5305
|
+
<div class="dbg-ctx-grid">${items2}</div>
|
|
5233
5306
|
</div>
|
|
5234
5307
|
</div>`;
|
|
5235
5308
|
}
|
|
@@ -5259,7 +5332,7 @@ function generateFiltersSection(data) {
|
|
|
5259
5332
|
const filters = Array.from(data.filtersUsed.entries());
|
|
5260
5333
|
if (filters.length === 0)
|
|
5261
5334
|
return "";
|
|
5262
|
-
const
|
|
5335
|
+
const items2 = filters.map(([name, count]) => `<span class="dbg-filter">${name}<span class="dbg-filter-count">\xD7${count}</span></span>`).join("");
|
|
5263
5336
|
return `
|
|
5264
5337
|
<div class="dbg-section">
|
|
5265
5338
|
<div class="dbg-section-header" onclick="this.parentElement.classList.toggle('open')">
|
|
@@ -5268,7 +5341,7 @@ function generateFiltersSection(data) {
|
|
|
5268
5341
|
<span class="dbg-chevron">${icons.chevron}</span>
|
|
5269
5342
|
</div>
|
|
5270
5343
|
<div class="dbg-section-content">
|
|
5271
|
-
<div class="dbg-filters">${
|
|
5344
|
+
<div class="dbg-filters">${items2}</div>
|
|
5272
5345
|
</div>
|
|
5273
5346
|
</div>`;
|
|
5274
5347
|
}
|
|
@@ -5300,7 +5373,7 @@ function generateCacheSection(data) {
|
|
|
5300
5373
|
function generateWarningsSection(data) {
|
|
5301
5374
|
if (data.warnings.length === 0)
|
|
5302
5375
|
return "";
|
|
5303
|
-
const
|
|
5376
|
+
const items2 = data.warnings.map((w) => `
|
|
5304
5377
|
<div class="dbg-warning">
|
|
5305
5378
|
${icons.warning}
|
|
5306
5379
|
<span class="dbg-warning-text">${escapeHtml(w)}</span>
|
|
@@ -5314,7 +5387,7 @@ function generateWarningsSection(data) {
|
|
|
5314
5387
|
<span class="dbg-chevron">${icons.chevron}</span>
|
|
5315
5388
|
</div>
|
|
5316
5389
|
<div class="dbg-section-content">
|
|
5317
|
-
<div class="dbg-warnings">${
|
|
5390
|
+
<div class="dbg-warnings">${items2}</div>
|
|
5318
5391
|
</div>
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