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 +11 -5
- package/dist/bundler/README.md +11 -5
- package/dist/bundler/minijinja_js_bg.wasm +0 -0
- package/dist/bundler/package.json +1 -1
- package/dist/node/README.md +11 -5
- package/dist/node/minijinja_js_bg.wasm +0 -0
- package/dist/node/package.json +1 -1
- package/dist/web/README.md +11 -5
- package/dist/web/minijinja_js_bg.wasm +0 -0
- package/dist/web/package.json +1 -1
- package/package.json +1 -1
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
|
[](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
|
|
6
|
-
[](https://crates.io/crates/minijinja)
|
|
7
|
-
[](https://img.shields.io/badge/rust-1.63%2B-orange.svg)
|
|
8
|
-
[](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)
|
package/dist/bundler/README.md
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
<p><strong>MiniJinja for JavaScript: a powerful template engine</strong></p>
|
|
4
4
|
|
|
5
5
|
[](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
|
|
6
|
-
[](https://crates.io/crates/minijinja)
|
|
7
|
-
[](https://img.shields.io/badge/rust-1.63%2B-orange.svg)
|
|
8
|
-
[](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
|
package/dist/node/README.md
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
<p><strong>MiniJinja for JavaScript: a powerful template engine</strong></p>
|
|
4
4
|
|
|
5
5
|
[](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
|
|
6
|
-
[](https://crates.io/crates/minijinja)
|
|
7
|
-
[](https://img.shields.io/badge/rust-1.63%2B-orange.svg)
|
|
8
|
-
[](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
|
package/dist/node/package.json
CHANGED
package/dist/web/README.md
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
<p><strong>MiniJinja for JavaScript: a powerful template engine</strong></p>
|
|
4
4
|
|
|
5
5
|
[](https://github.com/mitsuhiko/minijinja/blob/main/LICENSE)
|
|
6
|
-
[](https://crates.io/crates/minijinja)
|
|
7
|
-
[](https://img.shields.io/badge/rust-1.63%2B-orange.svg)
|
|
8
|
-
[](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
|
package/dist/web/package.json
CHANGED
package/package.json
CHANGED