ventojs 2.1.0 → 2.1.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [2.1.1] - 2025-09-18
8
+ ### Fixed
9
+ - The tag `include` fails when it's inside a `slot`.
10
+
7
11
  ## [2.1.0] - 2025-09-17
8
12
  ### Added
9
13
  - New `strict` mode to fail when using an undefined variable. This mode has a different performance profile than normal mode; it's mostly intended for testing and debug purposes. [#101], [#142]
@@ -82,6 +86,7 @@ Vento 2.0 is now dependency-free and compatible with browsers without a build st
82
86
  [#151]: https://github.com/ventojs/vento/issues/151
83
87
  [#156]: https://github.com/ventojs/vento/issues/156
84
88
 
89
+ [2.1.1]: https://github.com/ventojs/vento/compare/v2.1.0...v2.1.1
85
90
  [2.1.0]: https://github.com/ventojs/vento/compare/v2.0.2...v2.1.0
86
91
  [2.0.2]: https://github.com/ventojs/vento/compare/v2.0.1...v2.0.2
87
92
  [2.0.1]: https://github.com/ventojs/vento/compare/v2.0.0...v2.0.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ventojs",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "🌬 A minimal but powerful template engine",
5
5
  "type": "module",
6
6
  "repository": {
@@ -28,11 +28,11 @@ function includeTag(env, token, output, tokens) {
28
28
  }
29
29
  const { dataVarname } = env.options;
30
30
  return `{
31
- const __tmp = await __env.run(${file},
31
+ const __include = await __env.run(${file},
32
32
  {...${dataVarname}${data ? `, ...${data}` : ""}},
33
33
  __template.path,
34
34
  ${position}
35
35
  );
36
- ${output} += ${env.compileFilters(tokens, "__tmp.content")};
36
+ ${output} += ${env.compileFilters(tokens, "__include.content")};
37
37
  }`;
38
38
  }