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

tpl: Make the `eq` template func check a 'Equals' interface #3807

Closed
bep opened this Issue Aug 16, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@bep
Member

bep commented Aug 16, 2017

See c265c10

It would be nice if we could just do similar with eq etc.

@bep bep added the Enhancement label Aug 16, 2017

@bep bep added this to the v0.27 milestone Aug 16, 2017

bep added a commit to bep/hugo that referenced this issue Aug 17, 2017

compare, hugolib, tpl: Add Eqer interface
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 added a commit to bep/hugo that referenced this issue Aug 17, 2017

compare, hugolib, tpl: Add Eqer interface
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 added a commit to bep/hugo that referenced this issue Aug 17, 2017

compare, hugolib, tpl: Add Eqer interface
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 closed this in #3810 Aug 18, 2017

bep added a commit that referenced this issue Aug 18, 2017

compare, hugolib, tpl: Add Eqer interface
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

miltador added a commit to miltador-forks/hugo that referenced this issue Aug 28, 2017

compare, hugolib, tpl: Add Eqer interface
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment