Skip to content
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

function "reflect" not defined #5564

Closed
pamubay opened this issue Dec 25, 2018 · 2 comments · Fixed by #5565
Closed

function "reflect" not defined #5564

pamubay opened this issue Dec 25, 2018 · 2 comments · Fixed by #5565
Assignees
Milestone

Comments

@pamubay
Copy link

pamubay commented Dec 25, 2018

Trying new template function reflect.IsSlice and reflect.IsMap, both doesnt work.

{{ reflect.IsMap (dict "key" "value") }}
{{ reflect.IsMap "yo" }}

{{ reflect.IsSlice (slice 1 2 3) }} 
{{ reflect.IsSlice "yo" }}

Error output:
function "reflect" not defined

hugo version:
Hugo Static Site Generator v0.53-8FC339DC2529FF77E494A1C12CD1FF9FBCB880A4/extended linux/amd64 BuildDate: 2018-12-24T08:38:38Z

bep added a commit to gohugoio/hugoDocs that referenced this issue Dec 25, 2018
bep added a commit to gohugoio/hugoDocs that referenced this issue Dec 25, 2018
@bep
Copy link
Member

bep commented Dec 25, 2018

You are right, there was a missing piece in that implementation. I have disabled the docs for it for now.

/cc @moorereason

@bep bep added the Bug label Dec 25, 2018
@bep bep added this to the v0.54 milestone Dec 25, 2018
@moorereason moorereason self-assigned this Dec 25, 2018
moorereason added a commit to moorereason/hugo that referenced this issue Dec 25, 2018
moorereason added a commit to moorereason/hugo that referenced this issue Dec 26, 2018
moorereason added a commit to moorereason/hugo that referenced this issue Dec 26, 2018
The implementation has been fixed.

See gohugoio#5564
@bep bep closed this as completed in #5565 Dec 28, 2018
bep pushed a commit that referenced this issue Dec 28, 2018
@github-actions
Copy link

This issue 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 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants