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 · 1 comment

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

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

docs: Publish reflect functions
The implementation has been fixed.

See gohugoio#5564

@bep bep closed this in #5565 Dec 28, 2018

bep added a commit that referenced this issue Dec 28, 2018

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