@rhinostone/swig-django 2.9.5 → 2.9.7

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/lib/index.js CHANGED
@@ -32,7 +32,7 @@ exports.name = 'django';
32
32
  *
33
33
  * @type {String}
34
34
  */
35
- exports.version = "2.9.5";
35
+ exports.version = "2.9.7";
36
36
 
37
37
  /**
38
38
  * Expression-level parser — Pratt-style recursive descent that consumes
package/lib/tags/cycle.js CHANGED
@@ -8,8 +8,12 @@
8
8
  * inside a `{% for %}` loop it alternates per iteration. State is a
9
9
  * per-occurrence counter stored on `_ctx` under a unique key (the same
10
10
  * `Math.random()` scheme the for-loop uses for its loopcache), so it
11
- * persists across loop iterations within a render and resets on the next
12
- * render (fresh `_ctx`). Two distinct `{% cycle %}` tags never share state.
11
+ * persists across loop iterations within a render. A render's `_ctx` is a
12
+ * fresh object (a copy of the locals the call passes, or of the default
13
+ * locals when it passes none), so the cycle starts again on the next render;
14
+ * only a template rendered from inside another render of the same instance
15
+ * works on the context it is given. Two distinct `{% cycle %}` tags never
16
+ * share state.
13
17
  *
14
18
  * Values are evaluated fresh on each invocation (Django re-evaluates), and
15
19
  * the emitted value is autoescaped per the enclosing region (`token.escape`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinostone/swig-django",
3
- "version": "2.9.5",
3
+ "version": "2.9.7",
4
4
  "description": "Django-syntax frontend for the @rhinostone/swig-core template engine. Part of the @rhinostone/swig multi-flavor family.",
5
5
  "keywords": [
6
6
  "template",
@@ -22,7 +22,7 @@
22
22
  "node": ">=12"
23
23
  },
24
24
  "peerDependencies": {
25
- "@rhinostone/swig-core": "2.9.5"
25
+ "@rhinostone/swig-core": "2.9.7"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"