-
The parameter of the add_template function is a string reference with a lifetime. Why not use String to move the value here? Dealing with lifetime is not pleasant by any means.
For rust, the exact …
-
Isolated from #157:
In the latter case, I have imagined an API by which the engine tracks object path accesses at compile-time and then asks once (say via an Object trait) for a terminal value that…
-
Cross posting this as it was opened against MiniJinja: https://github.com/mitsuhiko/minijinja/issues/215
The proposal was made to add a `?.` operator which would work like `.` but does not error if…
-
Lazy syntax evaluation could cause it hard to find the bugs, for example,
`trim_start_matches` is not a built-in filter for `minijinja`, however,
it didn't report an error until the `if` condition…
-
## Description
[What happened]
Dot syntax causes `undefined value` errors while `[]` syntax doesn't.
## Reproduction steps
1. Have render context like this one:
```json
{
"settings": {
…
-
There are a handful of different undefined behaviors that can be opted into in Jinja2. MiniJinja only supports the default. They look roughly like this:
* `Undefined`
* `value.missing_attr` -> `…
-
## Description
`Error: cannot unpack: not a sequence` while trying to iterate over with JSON-object hash-map alike values.
## Reproduction steps
1. At playground (WASM):
2. I initially repro…
-
From Twitter:
* [MiniJinja author said](https://twitter.com/mitsuhiko/status/1574111459361132549) avoiding ? improved both the compile time and the runtime performances.
* [dtolnay said](https://t…
-
## Description
When using the python's binding, the context has "Undefined" value if there is the underscore sign in the context's object.
## Reproduction steps
```python
ctx = {"ctx": {"_fa…
-
## Description
```
error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minijinja-0.30.3/src/value/mod.rs:111:43…