Does Hugo currently provide a function that allows to execute an external command to which something can be piped to (or passed as argument) and that retrieves the command’s output? I’m thinking something like
{{ $output := runCmd "/bin/ls" "/tmp" }}
Thanks!
No, it does not.
Related:
For common patterns, you might consider creating a microservice (run locally or otherwise) to use with getJSON.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.