Include code from a file with Hugo First of all, all credit goes to Marcus Olsson [1] who pretty much wrote this Hugo Shortcode [2] which I only have made some small changes to.
I also refer to his post [3] for a good explaination on how it works.
Background I prepare for some bigger posts with a lot of code examples where I only want to show fragments of a whole file.