Skip to content

Add page context to template filter, resolves #1603 #1818

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

Merged
merged 6 commits into from
Apr 25, 2022

Conversation

tevino
Copy link
Contributor

@tevino tevino commented Apr 16, 2022

The PR #1612 is a great start to resolve #1603, it introduced the template filter.

This one is a step forward to allow accessing more context (namely page.name) in a template filter, as described here: #1612 (comment)

@tevino
Copy link
Contributor Author

tevino commented Apr 16, 2022

@dometto @bartkamphorst Please help to review, thank you!

Copy link
Member

@dometto dometto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a clean implementation and a great addition. Thanks @tevino! Some minor comments in the review.

@tevino tevino requested a review from dometto April 24, 2022 12:53
@tevino tevino changed the title Add page context to template filter, Resolves #1603 Add page context to template filter, resolves #1603 Apr 24, 2022
@dometto dometto merged commit 81c90e5 into gollum:master Apr 25, 2022
@dometto
Copy link
Member

dometto commented Apr 25, 2022

Thanks again @tevino! Could I ask you to document this feature in the wiki?

@tevino
Copy link
Contributor Author

tevino commented Apr 25, 2022

@dometto Sure, that's a part of the feature, here it goes.

Please feel free to polish and looking forward to seeing the release of this, cheers! 🎉

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.

Is it possible to use variables in _Template?
2 participants