Skip to content

Conversation

meshy
Copy link
Contributor

@meshy meshy commented May 2, 2025

This is a step on the road of removing the ORM from the template render.

meshy added 7 commits May 2, 2025 17:22
This is a step on the road of removing the ORM from the template render.
We had a filter that did a complex query at template render time. That
logic has now been moved to the view. Flat objects are introduced to
passed method to the template instead.

The helper function is horrible. We should also improve the method
context data structure, but that would require more work on the
template, so it's out of scope.

Similarly, this makes no effort to add types to the helper function
which was previously a template filter.
This adds a `klass` argument, and renames a couple of attributes.
Other than that, this is just a move.

This function is gnarly. Fixing it can come later.
There's no need for us to re-define this on every iteration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant