Skip to content

Conversation

bep
Copy link
Member

@bep bep commented Aug 17, 2017

And use it in eq and ne so Page values can be compared directly in the templates without thinking about it being a Page or a PageOutput wrapper.

Fixes #3807

@bep bep changed the title compare, hugolib, tpl: Add Eqer interface WIP: compare, hugolib, tpl: Add Eqer interface Aug 17, 2017
@bep bep changed the title WIP: compare, hugolib, tpl: Add Eqer interface compare, hugolib, tpl: Add Eqer interface Aug 17, 2017
@bep bep requested a review from moorereason August 17, 2017 11:12
And use it in `eq` and `ne` so `Page` values can be compared directly in the templates without thinking about it being a `Page` or a `PageOutput` wrapper.

Fixes gohugoio#3807
Copy link
Contributor

@moorereason moorereason left a comment

Choose a reason for hiding this comment

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

Looks great. 👍

@bep bep merged commit 08f48b9 into gohugoio:master Aug 18, 2017
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tpl: Make the eq template func check a 'Equals' interface
2 participants