bug: Not all documentation examples work #78
Labels
aspect/documentation 📚
Improvements or additions to documentation
domain/obvious 🟩
Represents the "known knowns" issue. It's Obviously
good first issue
Good for newcomers
priority/critical 🟥
Priority 1 - Must be fixed ASAP
state/todo 🚀
This is confirmed, will work on soon
Milestone
Describe the bug
Hi,
While I was evaluating the use of sprout I noticed some of the documented function examples don't work.
I will focus on cat but the same issue is with all functions that include commas. It wasn't until I read the Go test cases that I understood how to use the functions in a template. I didn't see any other reports of this issue so I assume I'm either misusing or misunderstanding the documentation but I would expect the "Template Example" to work in a template.
Thank you!
To Reproduce
I have a commented go dev link showing the issue: https://go.dev/play/p/LdHAcF0TY33
I will also paste the code here:
Expected behavior
No response
Code Snippet
Version of software
main
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: