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

Allow .Param to search nested maps #2598

Closed
bep opened this Issue Oct 17, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@bep
Member

bep commented Oct 17, 2016

So for key foo.bar:

  1. Check top-level for foo.bar
  2. Traverse the path foo, bar etc.

@bep bep added the Enhancement label Oct 17, 2016

@bep bep added this to the v0.18 milestone Oct 17, 2016

@bep bep modified the milestones: v0.19, v0.18 Dec 16, 2016

fj added a commit to fj/hugo that referenced this issue Feb 19, 2017

Enhance Page.Param to also traverse nested keys
The Param method currently assumes that its argument is a single,
distinct, top-level key to look up in the Params map. This enhances the
Param method; it will now also attempt to see if the key can be
interpreted as a nested chain of keys to look up in Params.

Fixes #2598.

@bep bep closed this in b2e3748 Feb 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment