Skip to content

chore: remove nunjucks context api - #9058

Merged
jackkav merged 3 commits into
Kong:developfrom
jackkav:remove-nunjucks-context-api
Aug 27, 2025
Merged

jackkav merged 3 commits into
Kong:developfrom
jackkav:remove-nunjucks-context-api

Conversation

@jackkav

@jackkav jackkav commented Aug 26, 2025 •

Copy link
Copy Markdown
Contributor

motivation: nunjucks performs poorly when using a nested tags, this is because the context it needed is expensive to create and the caching story is not well told.
In order to address this we are planning to trim down the surface area of the nunjucks related state in order to contain it to a single place where we can make simple optimisations.

notes

  • I traced the context api to a key called enableRender which was passed to codepromptmodal and then ignored. Easy to delete since it hasnt been used in a long time.

Merge after GA

@jackkav
jackkav marked this pull request as ready for review August 26, 2025 07:55
@jackkav
jackkav force-pushed the remove-nunjucks-context-api branch from 5b975d5 to d052786 Compare August 26, 2025 20:06
@jackkav
jackkav force-pushed the remove-nunjucks-context-api branch from d052786 to 415ca75 Compare August 27, 2025 08:35
@jackkav
jackkav enabled auto-merge (squash) August 27, 2025 08:35
@jackkav
jackkav merged commit f6b93d8 into Kong:develop Aug 27, 2025
@jackkav
jackkav deleted the remove-nunjucks-context-api branch August 27, 2025 08:51
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.

2 participants