-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MiniJinja 2.0 #418
Comments
So turns out that |
One suggestion, if the desire is to separate The other relevant idea is to remove |
I've just upgraded my WIP SSG to the minijinja 2.0 branch and wanted to offer a bit of a usage report. Note that I'm upgrading from the previous seq/map revamp and not the original system. Positives
Considerations
|
I have to say that I don't like I generally believe that the default of
Might be worth checking again, but last time I tried it, it resulted in a significant loss in performance. |
On the earlier conversation:
These are separate operations in MiniJinja so that |
In general I really quite like the object model now. There are some warts but they are easy enough to work out. The main point I’m unsure at the moment is the iterator stuff but that would be easy enough to work out. The explicit repr seems fine to me because most of the time it comes from the utilities automatically or the object is a map anyways but I will consider making it implied later down the road. |
Current state:
I'm quite conflicted on this still. At the moment it still defaults to
This is largely resolved now. The current logic is:
I reintroduced The reversing code is entirely gone for now. If that is worthwhile retaining I will find a way to bring it back. |
There is now an alpha release to play around with it: https://crates.io/crates/minijinja/2.0.0-alpha.0 |
The work for MiniJinja 2 is taking place in the
main
branch. Maintenance releases for 1.x will be worked on inminijinja-1.x
.ValueKind
#[non_exhaustive]
. This prevents adding new value types to it.Remove theExactSizeIterator
bound for the iterator interfaceminijinja-stack-ref
(TODO: consider bringing it back if it still brings value with the new object system)From
implementations forValue
(particularly in relation to collections)The text was updated successfully, but these errors were encountered: