minijinja-js 2.8.0 → 2.9.0

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 CHANGED
@@ -3,9 +3,6 @@
3
3
  <p><strong>MiniJinja for JavaScript: a powerful template engine</strong></p>
4
4
 
5
5
  [![License](https://img.shields.io/github/license/mitsuhiko/minijinja)](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
6
- [![Crates.io](https://img.shields.io/crates/d/minijinja.svg)](https://crates.io/crates/minijinja)
7
- [![rustc 1.63.0](https://img.shields.io/badge/rust-1.63%2B-orange.svg)](https://img.shields.io/badge/rust-1.63%2B-orange.svg)
8
- [![Documentation](https://docs.rs/minijinja/badge.svg)](https://docs.rs/minijinja)
9
6
 
10
7
  </div>
11
8
 
@@ -59,6 +56,17 @@ const result = env.evalExpr('1 + 1', {});
59
56
  console.log(result);
60
57
  ```
61
58
 
59
+ ## Web Usage
60
+
61
+ If you want to use minijinja-js from the browser instead of node, you will
62
+ need to use slightly different imports and call init explicitly:
63
+
64
+
65
+ ```javascript
66
+ import init, { Environment } from "minijinja-js/dist/web";
67
+ await init();
68
+ ```
69
+
62
70
  ## Known Limitations
63
71
 
64
72
  There are various limitations with the binding today, some of which can be fixed,
@@ -75,8 +83,6 @@ sponsor](https://github.com/sponsors/mitsuhiko).
75
83
 
76
84
  ## License and Links
77
85
 
78
- - [Documentation](https://docs.rs/minijinja/)
79
- - [Examples](https://github.com/mitsuhiko/minijinja/tree/main/examples)
80
86
  - [Issue Tracker](https://github.com/mitsuhiko/minijinja/issues)
81
87
  - [MiniJinja Playground](https://mitsuhiko.github.io/minijinja-playground/)
82
88
  - License: [Apache-2.0](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
@@ -3,9 +3,6 @@
3
3
  <p><strong>MiniJinja for JavaScript: a powerful template engine</strong></p>
4
4
 
5
5
  [![License](https://img.shields.io/github/license/mitsuhiko/minijinja)](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
6
- [![Crates.io](https://img.shields.io/crates/d/minijinja.svg)](https://crates.io/crates/minijinja)
7
- [![rustc 1.63.0](https://img.shields.io/badge/rust-1.63%2B-orange.svg)](https://img.shields.io/badge/rust-1.63%2B-orange.svg)
8
- [![Documentation](https://docs.rs/minijinja/badge.svg)](https://docs.rs/minijinja)
9
6
 
10
7
  </div>
11
8
 
@@ -59,6 +56,17 @@ const result = env.evalExpr('1 + 1', {});
59
56
  console.log(result);
60
57
  ```
61
58
 
59
+ ## Web Usage
60
+
61
+ If you want to use minijinja-js from the browser instead of node, you will
62
+ need to use slightly different imports and call init explicitly:
63
+
64
+
65
+ ```javascript
66
+ import init, { Environment } from "minijinja-js/dist/web";
67
+ await init();
68
+ ```
69
+
62
70
  ## Known Limitations
63
71
 
64
72
  There are various limitations with the binding today, some of which can be fixed,
@@ -75,8 +83,6 @@ sponsor](https://github.com/sponsors/mitsuhiko).
75
83
 
76
84
  ## License and Links
77
85
 
78
- - [Documentation](https://docs.rs/minijinja/)
79
- - [Examples](https://github.com/mitsuhiko/minijinja/tree/main/examples)
80
86
  - [Issue Tracker](https://github.com/mitsuhiko/minijinja/issues)
81
87
  - [MiniJinja Playground](https://mitsuhiko.github.io/minijinja-playground/)
82
88
  - License: [Apache-2.0](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
Binary file
@@ -5,7 +5,7 @@
5
5
  "Armin Ronacher <armin.ronacher@active-4.com>"
6
6
  ],
7
7
  "description": "a powerful template engine with minimal dependencies",
8
- "version": "2.8.0",
8
+ "version": "2.9.0",
9
9
  "license": "Apache-2.0",
10
10
  "files": [
11
11
  "minijinja_js_bg.wasm",
@@ -3,9 +3,6 @@
3
3
  <p><strong>MiniJinja for JavaScript: a powerful template engine</strong></p>
4
4
 
5
5
  [![License](https://img.shields.io/github/license/mitsuhiko/minijinja)](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
6
- [![Crates.io](https://img.shields.io/crates/d/minijinja.svg)](https://crates.io/crates/minijinja)
7
- [![rustc 1.63.0](https://img.shields.io/badge/rust-1.63%2B-orange.svg)](https://img.shields.io/badge/rust-1.63%2B-orange.svg)
8
- [![Documentation](https://docs.rs/minijinja/badge.svg)](https://docs.rs/minijinja)
9
6
 
10
7
  </div>
11
8
 
@@ -59,6 +56,17 @@ const result = env.evalExpr('1 + 1', {});
59
56
  console.log(result);
60
57
  ```
61
58
 
59
+ ## Web Usage
60
+
61
+ If you want to use minijinja-js from the browser instead of node, you will
62
+ need to use slightly different imports and call init explicitly:
63
+
64
+
65
+ ```javascript
66
+ import init, { Environment } from "minijinja-js/dist/web";
67
+ await init();
68
+ ```
69
+
62
70
  ## Known Limitations
63
71
 
64
72
  There are various limitations with the binding today, some of which can be fixed,
@@ -75,8 +83,6 @@ sponsor](https://github.com/sponsors/mitsuhiko).
75
83
 
76
84
  ## License and Links
77
85
 
78
- - [Documentation](https://docs.rs/minijinja/)
79
- - [Examples](https://github.com/mitsuhiko/minijinja/tree/main/examples)
80
86
  - [Issue Tracker](https://github.com/mitsuhiko/minijinja/issues)
81
87
  - [MiniJinja Playground](https://mitsuhiko.github.io/minijinja-playground/)
82
88
  - License: [Apache-2.0](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
Binary file
@@ -4,7 +4,7 @@
4
4
  "Armin Ronacher <armin.ronacher@active-4.com>"
5
5
  ],
6
6
  "description": "a powerful template engine with minimal dependencies",
7
- "version": "2.8.0",
7
+ "version": "2.9.0",
8
8
  "license": "Apache-2.0",
9
9
  "files": [
10
10
  "minijinja_js_bg.wasm",
@@ -3,9 +3,6 @@
3
3
  <p><strong>MiniJinja for JavaScript: a powerful template engine</strong></p>
4
4
 
5
5
  [![License](https://img.shields.io/github/license/mitsuhiko/minijinja)](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
6
- [![Crates.io](https://img.shields.io/crates/d/minijinja.svg)](https://crates.io/crates/minijinja)
7
- [![rustc 1.63.0](https://img.shields.io/badge/rust-1.63%2B-orange.svg)](https://img.shields.io/badge/rust-1.63%2B-orange.svg)
8
- [![Documentation](https://docs.rs/minijinja/badge.svg)](https://docs.rs/minijinja)
9
6
 
10
7
  </div>
11
8
 
@@ -59,6 +56,17 @@ const result = env.evalExpr('1 + 1', {});
59
56
  console.log(result);
60
57
  ```
61
58
 
59
+ ## Web Usage
60
+
61
+ If you want to use minijinja-js from the browser instead of node, you will
62
+ need to use slightly different imports and call init explicitly:
63
+
64
+
65
+ ```javascript
66
+ import init, { Environment } from "minijinja-js/dist/web";
67
+ await init();
68
+ ```
69
+
62
70
  ## Known Limitations
63
71
 
64
72
  There are various limitations with the binding today, some of which can be fixed,
@@ -75,8 +83,6 @@ sponsor](https://github.com/sponsors/mitsuhiko).
75
83
 
76
84
  ## License and Links
77
85
 
78
- - [Documentation](https://docs.rs/minijinja/)
79
- - [Examples](https://github.com/mitsuhiko/minijinja/tree/main/examples)
80
86
  - [Issue Tracker](https://github.com/mitsuhiko/minijinja/issues)
81
87
  - [MiniJinja Playground](https://mitsuhiko.github.io/minijinja-playground/)
82
88
  - License: [Apache-2.0](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
Binary file
@@ -5,7 +5,7 @@
5
5
  "Armin Ronacher <armin.ronacher@active-4.com>"
6
6
  ],
7
7
  "description": "a powerful template engine with minimal dependencies",
8
- "version": "2.8.0",
8
+ "version": "2.9.0",
9
9
  "license": "Apache-2.0",
10
10
  "files": [
11
11
  "minijinja_js_bg.wasm",
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "test": "mocha tests"
39
39
  },
40
40
  "types": "dist/node/minijinja_js.d.ts",
41
- "version": "2.8.0"
41
+ "version": "2.9.0"
42
42
  }