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

hooks: RFC: Hooks that return values #14

Closed
davidsneighbour opened this issue Oct 8, 2021 · 1 comment
Closed

hooks: RFC: Hooks that return values #14

davidsneighbour opened this issue Oct 8, 2021 · 1 comment
Assignees

Comments

@davidsneighbour
Copy link
Owner

It would be nice to have a hook return values (or a value). Depending on the hookname (ret-hookname?) the hook could execute the linked layout and return a value or multiple values.

{{ $returnedvalue := partial "func/hooks" "hookname" }}

One main issue is, how to tell func/hooks that a return value is expected and if it's safe enough to just pipe through what the template returns.

@davidsneighbour davidsneighbour self-assigned this Oct 8, 2021
@davidsneighbour davidsneighbour changed the title RFC: Hooks that return values hugo-hooks: RFC: Hooks that return values Mar 30, 2023
@davidsneighbour davidsneighbour transferred this issue from davidsneighbour/hugo-hooks Mar 30, 2023
@davidsneighbour davidsneighbour changed the title hugo-hooks: RFC: Hooks that return values hooks: RFC: Hooks that return values Mar 3, 2024
@davidsneighbour
Copy link
Owner Author

see #20, closing this in favor of filter hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant