Function for running external command?

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" }}


No, it does not.


For common patterns, you might consider creating a microservice (run locally or otherwise) to use with getJSON.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.